#231F8D#231F8D

#231F8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.172 H 273.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#231F8D
RGBrgb(35, 31, 141)
HSLhsl(242, 64%, 34%)
HSVhsv(242, 78%, 55%)
CMYKcmyk(75.2%, 78%, 0%, 44.7%)
CIE-LABlab(21.06, 39.24, -59.40)
CIE-LCHlch(21.06, 71.19, 303.45°)
OKLaboklab(33.64% 0.0109 -0.1719)
OKLCHoklch(33.64% 0.172 273.6)
XYZxyz(5.9892, 3.2598, 25.5077)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F8D #898D1F
analogous
#1F528D #231F8D #5A1F8D
triadic
#231F8D #8D231F #1F8D23
tetradic
#231F8D #8D1F52 #898D1F #1F8D5A
square
#231F8D #8D1F52 #898D1F #1F8D5A
split-complementary
#231F8D #8D5A1F #528D1F
monochromatic
#0A0929 #17145B #231F8D #2F2ABF #534ED8

Accessibility & contrast

On white

12.71
#231F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#231F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F8D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F8D#FFFFFF#000000##FFFFFF
##231F8D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #231f8d;
/* rgb */ color: rgb(35, 31, 141);
/* oklch */ color: oklch(33.6% 0.172 273.6);
Tailwind
colors: {
  custom: {
    50: '#705db0',
    500: '#231f8d',
    950: '#000000',
  },
}
SCSS
$custom: #231f8d;
$custom-light: #705db0;
$custom-dark: #000000;
JSON
{
  "hex": "#231f8d",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 242.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.1722,
    "h": 273.6
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#231F8D
secondary
#B7BB4D
accent
#E741E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #231F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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