#231D8B#231D8B

#231D8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.172 H 274.1°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#231D8B
RGBrgb(35, 29, 139)
HSLhsl(243, 65%, 33%)
HSVhsv(243, 79%, 55%)
CMYKcmyk(74.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.44, 39.69, -59.17)
CIE-LCHlch(20.44, 71.25, 303.85°)
OKLaboklab(33.14% 0.0122 -0.1712)
OKLCHoklch(33.14% 0.172 274.1)
XYZxyz(5.7912, 3.0996, 24.7142)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D8B #858B1D
analogous
#1D4E8B #231D8B #5A1D8B
triadic
#231D8B #8B231D #1D8B23
tetradic
#231D8B #8B1D4E #858B1D #1D8B5A
square
#231D8B #8B1D4E #858B1D #1D8B5A
split-complementary
#231D8B #8B5A1D #4E8B1D
monochromatic
#090826 #161258 #231D8B #3028BE #5149D9

Accessibility & contrast

On white

12.96
#231D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#231D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D8B
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D8B#FFFFFF#000000##FFFFFF
##231D8B1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #231d8b;
/* rgb */ color: rgb(35, 29, 139);
/* oklch */ color: oklch(33.1% 0.172 274.1);
Tailwind
colors: {
  custom: {
    50: '#705bae',
    500: '#231d8b',
    950: '#000000',
  },
}
SCSS
$custom: #231d8b;
$custom-light: #705bae;
$custom-dark: #000000;
JSON
{
  "hex": "#231d8b",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 243.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33136,
    "c": 0.17161,
    "h": 274.1
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#231D8B
secondary
#B5BB49
accent
#E83FDF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #231D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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