#231E7F#231E7F

#231E7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.155 H 275.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#231E7F
RGBrgb(35, 30, 127)
HSLhsl(243, 62%, 31%)
HSVhsv(243, 76%, 50%)
CMYKcmyk(72.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(19.30, 35.03, -53.50)
CIE-LCHlch(19.30, 63.95, 303.22°)
OKLaboklab(31.93% 0.0144 -0.1547)
OKLCHoklch(31.93% 0.155 275.3)
XYZxyz(4.9869, 2.8177, 20.3556)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231E7F #7A7F1E
analogous
#1E497F #231E7F #531E7F
triadic
#231E7F #7F231E #1E7F23
tetradic
#231E7F #7F1E49 #7A7F1E #1E7F53
square
#231E7F #7F1E49 #7A7F1E #1E7F53
split-complementary
#231E7F #7F531E #497F1E
monochromatic
#08071C #15124D #231E7F #312AB1 #4C44D3

Accessibility & contrast

On white

13.43
#231E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#231E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231E7F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231E7F#FFFFFF#000000##FFFFFF
##231E7F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231e7f;
/* rgb */ color: rgb(35, 30, 127);
/* oklch */ color: oklch(31.9% 0.155 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ba5',
    500: '#231e7f',
    950: '#000000',
  },
}
SCSS
$custom: #231e7f;
$custom-light: #6d5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#231e7f",
  "rgb": {
    "r": 35,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 243.093,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31934,
    "c": 0.15534,
    "h": 275.3
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#231E7F
secondary
#ADB247
accent
#E543DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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