#231D8D#231D8D

#231D8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.174 H 273.9°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#231D8D
RGBrgb(35, 29, 141)
HSLhsl(243, 66%, 33%)
HSVhsv(243, 79%, 55%)
CMYKcmyk(75.2%, 79.4%, 0%, 44.7%)
CIE-LABlab(20.67, 40.35, -60.04)
CIE-LCHlch(20.67, 72.34, 303.90°)
OKLaboklab(33.37% 0.0117 -0.1737)
OKLCHoklch(33.37% 0.174 273.9)
XYZxyz(5.9386, 3.1585, 25.4908)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D8D #878D1D
analogous
#1D4F8D #231D8D #5B1D8D
triadic
#231D8D #8D231D #1D8D23
tetradic
#231D8D #8D1D4F #878D1D #1D8D5B
square
#231D8D #8D1D4F #878D1D #1D8D5B
split-complementary
#231D8D #8D5B1D #4F8D1D
monochromatic
#0A0827 #16135A #231D8D #3027C0 #524BDA

Accessibility & contrast

On white

12.87
#231D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#231D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D8D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D8D#FFFFFF#000000##FFFFFF
##231D8D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231d8d;
/* rgb */ color: rgb(35, 29, 141);
/* oklch */ color: oklch(33.4% 0.174 273.9);
Tailwind
colors: {
  custom: {
    50: '#715bb0',
    500: '#231d8d',
    950: '#000000',
  },
}
SCSS
$custom: #231d8d;
$custom-light: #715bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#231d8d",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 243.214,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33365,
    "c": 0.1741,
    "h": 273.9
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#231D8D
secondary
#B6BC4A
accent
#E93FE0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #231D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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