#231F8A#231F8A

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

Color values

HEX#231F8A
RGBrgb(35, 31, 138)
HSLhsl(242, 63%, 33%)
HSVhsv(242, 78%, 54%)
CMYKcmyk(74.6%, 77.5%, 0%, 45.9%)
CIE-LABlab(20.72, 38.23, -58.09)
CIE-LCHlch(20.72, 69.54, 303.35°)
OKLaboklab(33.3% 0.0115 -0.168)
OKLCHoklch(33.3% 0.168 273.9)
XYZxyz(5.7690, 3.1717, 24.3480)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F8A #868A1F
analogous
#1F508A #231F8A #581F8A
triadic
#231F8A #8A231F #1F8A23
tetradic
#231F8A #8A1F50 #868A1F #1F8A58
square
#231F8A #8A1F50 #868A1F #1F8A58
split-complementary
#231F8A #8A581F #508A1F
monochromatic
#0A0926 #161458 #231F8A #302ABC #524CD7

Accessibility & contrast

On white

12.85
#231F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F8A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F8A#FFFFFF#000000##FFFFFF
##231F8A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #231f8a;
/* rgb */ color: rgb(35, 31, 138);
/* oklch */ color: oklch(33.3% 0.168 273.9);
Tailwind
colors: {
  custom: {
    50: '#705cad',
    500: '#231f8a',
    950: '#000000',
  },
}
SCSS
$custom: #231f8a;
$custom-light: #705cad;
$custom-dark: #000000;
JSON
{
  "hex": "#231f8a",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 242.243,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.333,
    "c": 0.16842,
    "h": 273.9
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#231F8A
secondary
#B5BA4B
accent
#E641E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #231F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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