#231D8F#231D8F

#231D8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 273.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#231D8F
RGBrgb(35, 29, 143)
HSLhsl(243, 66%, 34%)
HSVhsv(243, 80%, 56%)
CMYKcmyk(75.5%, 79.7%, 0%, 43.9%)
CIE-LABlab(20.90, 41.02, -60.91)
CIE-LCHlch(20.90, 73.43, 303.96°)
OKLaboklab(33.6% 0.0113 -0.1762)
OKLCHoklch(33.6% 0.177 273.7)
XYZxyz(6.0888, 3.2186, 26.2816)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D8F #898F1D
analogous
#1D508F #231D8F #5C1D8F
triadic
#231D8F #8F231D #1D8F23
tetradic
#231D8F #8F1D50 #898F1D #1D8F5C
square
#231D8F #8F1D50 #898F1D #1D8F5C
split-complementary
#231D8F #8F5C1D #508F1D
monochromatic
#0A0829 #17135C #231D8F #2F27C2 #534CDB

Accessibility & contrast

On white

12.78
#231D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#231D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D8F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D8F#FFFFFF#000000##FFFFFF
##231D8F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231d8f;
/* rgb */ color: rgb(35, 29, 143);
/* oklch */ color: oklch(33.6% 0.177 273.7);
Tailwind
colors: {
  custom: {
    50: '#715cb1',
    500: '#231d8f',
    950: '#000000',
  },
}
SCSS
$custom: #231d8f;
$custom-light: #715cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#231d8f",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 243.158,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33595,
    "c": 0.17657,
    "h": 273.7
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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