#231F96#231F96

#231F96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 272.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#231F96
RGBrgb(35, 31, 150)
HSLhsl(242, 66%, 35%)
HSVhsv(242, 79%, 59%)
CMYKcmyk(76.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.08, 42.25, -63.28)
CIE-LCHlch(22.08, 76.09, 303.73°)
OKLaboklab(34.66% 0.0089 -0.1831)
OKLCHoklch(34.66% 0.183 272.8)
XYZxyz(6.6863, 3.5386, 29.1789)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F96 #92961F
analogous
#1F5696 #231F96 #5E1F96
triadic
#231F96 #96231F #1F9623
tetradic
#231F96 #961F56 #92961F #1F965E
square
#231F96 #961F56 #92961F #1F965E
split-complementary
#231F96 #965E1F #56961F
monochromatic
#0B0A31 #171563 #231F96 #2F29C9 #5854DC

Accessibility & contrast

On white

12.30
#231F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#231F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F96
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F96#FFFFFF#000000##FFFFFF
##231F961.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #231f96;
/* rgb */ color: rgb(35, 31, 150);
/* oklch */ color: oklch(34.7% 0.183 272.8);
Tailwind
colors: {
  custom: {
    50: '#735db6',
    500: '#231f96',
    950: '#000000',
  },
}
SCSS
$custom: #231f96;
$custom-light: #735db6;
$custom-dark: #000000;
JSON
{
  "hex": "#231f96",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 242.017,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34662,
    "c": 0.18334,
    "h": 272.8
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#231F96
secondary
#BBBF52
accent
#E93FE3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #231F96

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

Preview Lab → · Contrast checker → · Palette generator →

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