#231B98#231B98

#231B98 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.189 H 273.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#231B98
RGBrgb(35, 27, 152)
HSLhsl(244, 70%, 35%)
HSVhsv(244, 82%, 60%)
CMYKcmyk(77%, 82.2%, 0%, 40.4%)
CIE-LABlab(21.61, 44.97, -65.30)
CIE-LCHlch(21.61, 79.29, 304.55°)
OKLaboklab(34.4% 0.0098 -0.1889)
OKLCHoklch(34.4% 0.189 273)
XYZxyz(6.7507, 3.4075, 30.0016)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B98 #90981B
analogous
#1B5198 #231B98 #611B98
triadic
#231B98 #98231B #1B9823
tetradic
#231B98 #981B51 #90981B #1B9861
square
#231B98 #981B51 #90981B #1B9861
split-complementary
#231B98 #98611B #51981B
monochromatic
#0B0930 #171264 #231B98 #2F24CC #574EE0

Accessibility & contrast

On white

12.49
#231B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#231B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B98
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B98#FFFFFF#000000##FFFFFF
##231B981.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002E96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #231b98;
/* rgb */ color: rgb(35, 27, 152);
/* oklch */ color: oklch(34.4% 0.189 273.0);
Tailwind
colors: {
  custom: {
    50: '#745bb8',
    500: '#231b98',
    950: '#000000',
  },
}
SCSS
$custom: #231b98;
$custom-light: #745bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#231b98",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 243.84,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.18918,
    "h": 273
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#231B98
secondary
#BAC24D
accent
#ED3BE1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #231B98

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

Preview Lab → · Contrast checker → · Palette generator →

#231B98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva