#231F9D#231F9D

#231F9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.192 H 272.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#231F9D
RGBrgb(35, 31, 157)
HSLhsl(242, 67%, 37%)
HSVhsv(242, 80%, 62%)
CMYKcmyk(77.7%, 80.3%, 0%, 38.4%)
CIE-LABlab(22.90, 44.55, -66.23)
CIE-LCHlch(22.90, 79.82, 303.92°)
OKLaboklab(35.47% 0.0073 -0.1917)
OKLCHoklch(35.47% 0.192 272.2)
XYZxyz(7.2669, 3.7708, 32.2366)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F9D #999D1F
analogous
#1F5A9D #231F9D #621F9D
triadic
#231F9D #9D231F #1F9D23
tetradic
#231F9D #9D1F5A #999D1F #1F9D62
square
#231F9D #9D1F5A #999D1F #1F9D62
split-complementary
#231F9D #9D621F #5A9D1F
monochromatic
#0C0B37 #18156A #231F9D #2E29D0 #5D58DE

Accessibility & contrast

On white

11.97
#231F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#231F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F9D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F9D#FFFFFF#000000##FFFFFF
##231F9D1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #231f9d;
/* rgb */ color: rgb(35, 31, 157);
/* oklch */ color: oklch(35.5% 0.192 272.2);
Tailwind
colors: {
  custom: {
    50: '#745ebb',
    500: '#231f9d',
    950: '#000000',
  },
}
SCSS
$custom: #231f9d;
$custom-light: #745ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#231f9d",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 241.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35471,
    "c": 0.19183,
    "h": 272.2
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#231F9D
secondary
#BEC256
accent
#EA3EE4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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