#231F9F#231F9F

#231F9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.194 H 272.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#231F9F
RGBrgb(35, 31, 159)
HSLhsl(242, 67%, 37%)
HSVhsv(242, 81%, 62%)
CMYKcmyk(78%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.13, 45.19, -67.06)
CIE-LCHlch(23.13, 80.87, 303.98°)
OKLaboklab(35.7% 0.0068 -0.1941)
OKLCHoklch(35.7% 0.194 272)
XYZxyz(7.4390, 3.8397, 33.1432)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F9F #9B9F1F
analogous
#1F5B9F #231F9F #631F9F
triadic
#231F9F #9F231F #1F9F23
tetradic
#231F9F #9F1F5B #9B9F1F #1F9F63
square
#231F9F #9F1F5B #9B9F1F #1F9F63
split-complementary
#231F9F #9F631F #5B9F1F
monochromatic
#0C0B39 #18156C #231F9F #2E29D2 #5E5ADF

Accessibility & contrast

On white

11.88
#231F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#231F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F9F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F9F#FFFFFF#000000##FFFFFF
##231F9F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #231f9f;
/* rgb */ color: rgb(35, 31, 159);
/* oklch */ color: oklch(35.7% 0.194 272.0);
Tailwind
colors: {
  custom: {
    50: '#755ebd',
    500: '#231f9f',
    950: '#000000',
  },
}
SCSS
$custom: #231f9f;
$custom-light: #755ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#231f9f",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 241.875,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35703,
    "c": 0.19422,
    "h": 272
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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