#231D7F#231D7F

#231D7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.156 H 275.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#231D7F
RGBrgb(35, 29, 127)
HSLhsl(244, 63%, 31%)
HSVhsv(244, 77%, 50%)
CMYKcmyk(72.4%, 77.2%, 0%, 50.2%)
CIE-LABlab(19.09, 35.62, -53.84)
CIE-LCHlch(19.09, 64.56, 303.49°)
OKLaboklab(31.79% 0.0149 -0.1557)
OKLCHoklch(31.79% 0.156 275.5)
XYZxyz(4.9620, 2.7679, 20.3473)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D7F #797F1D
analogous
#1D487F #231D7F #541D7F
triadic
#231D7F #7F231D #1D7F23
tetradic
#231D7F #7F1D48 #797F1D #1D7F54
square
#231D7F #7F1D48 #797F1D #1D7F54
split-complementary
#231D7F #7F541D #487F1D
monochromatic
#08061B #15124D #231D7F #3128B1 #4B42D4

Accessibility & contrast

On white

13.52
#231D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D7F
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D7F#FFFFFF#000000##FFFFFF
##231D7F1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231d7f;
/* rgb */ color: rgb(35, 29, 127);
/* oklch */ color: oklch(31.8% 0.156 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d5ba5',
    500: '#231d7f',
    950: '#000000',
  },
}
SCSS
$custom: #231d7f;
$custom-light: #6d5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#231d7f",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 243.673,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31786,
    "c": 0.15639,
    "h": 275.5
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#231D7F
secondary
#ACB245
accent
#E642DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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