#231998#231998

#231998 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.191 H 273.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#231998
RGBrgb(35, 25, 152)
HSLhsl(245, 72%, 35%)
HSVhsv(245, 84%, 60%)
CMYKcmyk(77%, 83.6%, 0%, 40.4%)
CIE-LABlab(21.28, 45.93, -65.85)
CIE-LCHlch(21.28, 80.28, 304.89°)
OKLaboklab(34.17% 0.0104 -0.1905)
OKLCHoklch(34.17% 0.191 273.1)
XYZxyz(6.7064, 3.3189, 29.9868)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231998 #8E9819
analogous
#194F98 #231998 #621998
triadic
#231998 #982319 #199823
tetradic
#231998 #98194F #8E9819 #199862
square
#231998 #98194F #8E9819 #199862
split-complementary
#231998 #986219 #4F9819
monochromatic
#0B082F #171063 #231998 #2F22CD #564AE1

Accessibility & contrast

On white

12.62
#231998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#231998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231998
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231998#FFFFFF#000000##FFFFFF
##2319981.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002D96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #231998;
/* rgb */ color: rgb(35, 25, 152);
/* oklch */ color: oklch(34.2% 0.191 273.1);
Tailwind
colors: {
  custom: {
    50: '#745ab8',
    500: '#231998',
    950: '#000000',
  },
}
SCSS
$custom: #231998;
$custom-light: #745ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#231998",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 244.724,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3417,
    "c": 0.19076,
    "h": 273.1
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#231998
secondary
#B9C34A
accent
#EE39E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231998

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#231998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva