#231F4E#231F4E

#231F4E is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.084 H 283.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#231F4E
RGBrgb(35, 31, 78)
HSLhsl(245, 43%, 21%)
HSVhsv(245, 60%, 31%)
CMYKcmyk(55.1%, 60.3%, 0%, 69.4%)
CIE-LABlab(14.88, 16.72, -28.50)
CIE-LCHlch(14.88, 33.04, 300.39°)
OKLaboklab(27.3% 0.0191 -0.0814)
OKLCHoklch(27.3% 0.084 283.2)
XYZxyz(2.5579, 1.8872, 7.4357)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F4E #4A4E1F
analogous
#1F334E #231F4E #3B1F4E
triadic
#231F4E #4E231F #1F4E23
tetradic
#231F4E #4E1F33 #4A4E1F #1F4E3B
square
#231F4E #4E1F33 #4A4E1F #1F4E3B
split-complementary
#231F4E #4E3B1F #334E1F
monochromatic
#0A0916 #0F0E22 #231F4E #37307A #4A42A6

Accessibility & contrast

On white

15.25
#231F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#231F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F4E
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F4E#FFFFFF#000000##FFFFFF
##231F4E1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052750
Deuteranopia (green-blind)
#02244D
Tritanopia (blue-blind)
#132A33
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #231f4e;
/* rgb */ color: rgb(35, 31, 78);
/* oklch */ color: oklch(27.3% 0.084 283.2);
Tailwind
colors: {
  custom: {
    50: '#625a80',
    500: '#231f4e',
    950: '#000000',
  },
}
SCSS
$custom: #231f4e;
$custom-light: #625a80;
$custom-dark: #000000;
JSON
{
  "hex": "#231f4e",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 245.106,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27302,
    "c": 0.0836,
    "h": 283.2
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#231F4E
secondary
#7E8346
accent
#D355C8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#05040A
muted
#7A797C

Preview Lab

Preview with #231F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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