#231F7D#231F7D

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

Color values

HEX#231F7D
RGBrgb(35, 31, 125)
HSLhsl(243, 60%, 31%)
HSVhsv(243, 75%, 49%)
CMYKcmyk(72%, 75.2%, 0%, 51%)
CIE-LABlab(19.30, 33.74, -52.23)
CIE-LCHlch(19.30, 62.18, 302.86°)
OKLaboklab(31.87% 0.0142 -0.151)
OKLCHoklch(31.87% 0.152 275.4)
XYZxyz(4.8836, 2.8175, 19.6845)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F7D #797D1F
analogous
#1F4A7D #231F7D #521F7D
triadic
#231F7D #7D231F #1F7D23
tetradic
#231F7D #7D1F4A #797D1F #1F7D52
square
#231F7D #7D1F4A #797D1F #1F7D52
split-complementary
#231F7D #7D521F #4A7D1F
monochromatic
#08071B #15134C #231F7D #312BAE #4B45D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##231F7D#FFFFFF#000000##FFFFFF
##231F7D1.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)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231f7d;
/* rgb */ color: rgb(35, 31, 125);
/* oklch */ color: oklch(31.9% 0.152 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ca4',
    500: '#231f7d',
    950: '#000000',
  },
}
SCSS
$custom: #231f7d;
$custom-light: #6c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#231f7d",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 242.553,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31869,
    "c": 0.15164,
    "h": 275.4
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#231F7D
secondary
#ACB048
accent
#E344DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #231F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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