#231F99#231F99

#231F99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.187 H 272.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#231F99
RGBrgb(35, 31, 153)
HSLhsl(242, 66%, 36%)
HSVhsv(242, 80%, 60%)
CMYKcmyk(77.1%, 79.7%, 0%, 40%)
CIE-LABlab(22.43, 43.24, -64.55)
CIE-LCHlch(22.43, 77.70, 303.82°)
OKLaboklab(35.01% 0.0082 -0.1868)
OKLCHoklch(35.01% 0.187 272.5)
XYZxyz(6.9310, 3.6365, 30.4674)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F99 #95991F
analogous
#1F5899 #231F99 #601F99
triadic
#231F99 #99231F #1F9923
tetradic
#231F99 #991F58 #95991F #1F9960
square
#231F99 #991F58 #95991F #1F9960
split-complementary
#231F99 #99601F #58991F
monochromatic
#0C0A33 #171566 #231F99 #2F29CC #5A56DD

Accessibility & contrast

On white

12.16
#231F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231F99
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F99#FFFFFF#000000##FFFFFF
##231F991.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #231f99;
/* rgb */ color: rgb(35, 31, 153);
/* oklch */ color: oklch(35.0% 0.187 272.5);
Tailwind
colors: {
  custom: {
    50: '#735db8',
    500: '#231f99',
    950: '#000000',
  },
}
SCSS
$custom: #231f99;
$custom-light: #735db8;
$custom-dark: #000000;
JSON
{
  "hex": "#231f99",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 241.967,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.187,
    "h": 272.5
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#231F99
secondary
#BDC054
accent
#E93FE4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231F99

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

Preview Lab → · Contrast checker → · Palette generator →

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