#231F9A#231F9A

#231F9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.188 H 272.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#231F9A
RGBrgb(35, 31, 154)
HSLhsl(242, 66%, 36%)
HSVhsv(242, 80%, 60%)
CMYKcmyk(77.3%, 79.9%, 0%, 39.6%)
CIE-LABlab(22.55, 43.57, -64.97)
CIE-LCHlch(22.55, 78.23, 303.84°)
OKLaboklab(35.12% 0.008 -0.188)
OKLCHoklch(35.12% 0.188 272.4)
XYZxyz(7.0139, 3.6696, 30.9042)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F9A #969A1F
analogous
#1F599A #231F9A #611F9A
triadic
#231F9A #9A231F #1F9A23
tetradic
#231F9A #9A1F59 #969A1F #1F9A61
square
#231F9A #9A1F59 #969A1F #1F9A61
split-complementary
#231F9A #9A611F #599A1F
monochromatic
#0C0A34 #171567 #231F9A #2F29CD #5B56DD

Accessibility & contrast

On white

12.11
#231F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#231F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F9A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F9A#FFFFFF#000000##FFFFFF
##231F9A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003098
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #231f9a;
/* rgb */ color: rgb(35, 31, 154);
/* oklch */ color: oklch(35.1% 0.188 272.4);
Tailwind
colors: {
  custom: {
    50: '#745db9',
    500: '#231f9a',
    950: '#000000',
  },
}
SCSS
$custom: #231f9a;
$custom-light: #745db9;
$custom-dark: #000000;
JSON
{
  "hex": "#231f9a",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 241.951,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35123,
    "c": 0.18821,
    "h": 272.4
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#231F9A
secondary
#BDC154
accent
#E93EE4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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