#231F9E#231F9E

#231F9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.193 H 272.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#231F9E
RGBrgb(35, 31, 158)
HSLhsl(242, 67%, 37%)
HSVhsv(242, 80%, 62%)
CMYKcmyk(77.8%, 80.4%, 0%, 38%)
CIE-LABlab(23.02, 44.87, -66.65)
CIE-LCHlch(23.02, 80.35, 303.95°)
OKLaboklab(35.59% 0.0071 -0.1929)
OKLCHoklch(35.59% 0.193 272.1)
XYZxyz(7.3526, 3.8051, 32.6881)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F9E #9A9E1F
analogous
#1F5A9E #231F9E #631F9E
triadic
#231F9E #9E231F #1F9E23
tetradic
#231F9E #9E1F5A #9A9E1F #1F9E63
square
#231F9E #9E1F5A #9A9E1F #1F9E63
split-complementary
#231F9E #9E631F #5A9E1F
monochromatic
#0C0B38 #18156B #231F9E #2E29D1 #5D59DE

Accessibility & contrast

On white

11.92
#231F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#231F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F9E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F9E#FFFFFF#000000##FFFFFF
##231F9E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #231f9e;
/* rgb */ color: rgb(35, 31, 158);
/* oklch */ color: oklch(35.6% 0.193 272.1);
Tailwind
colors: {
  custom: {
    50: '#755ebc',
    500: '#231f9e',
    950: '#000000',
  },
}
SCSS
$custom: #231f9e;
$custom-light: #755ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#231f9e",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 241.89,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35587,
    "c": 0.19303,
    "h": 272.1
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#231F9E
secondary
#BFC256
accent
#EA3EE5
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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