#231F82#231F82

#231F82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.158 H 274.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#231F82
RGBrgb(35, 31, 130)
HSLhsl(242, 61%, 32%)
HSVhsv(242, 76%, 51%)
CMYKcmyk(73.1%, 76.2%, 0%, 49%)
CIE-LABlab(19.84, 35.48, -54.51)
CIE-LCHlch(19.84, 65.04, 303.06°)
OKLaboklab(32.41% 0.0132 -0.1576)
OKLCHoklch(32.41% 0.158 274.8)
XYZxyz(5.2111, 2.9485, 21.4093)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F82 #7E821F
analogous
#1F4D82 #231F82 #551F82
triadic
#231F82 #82231F #1F8223
tetradic
#231F82 #821F4D #7E821F #1F8255
square
#231F82 #821F4D #7E821F #1F8255
split-complementary
#231F82 #82551F #4D821F
monochromatic
#08071F #161351 #231F82 #302BB3 #4E48D3

Accessibility & contrast

On white

13.21
#231F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#231F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F82
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F82#FFFFFF#000000##FFFFFF
##231F821.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #231f82;
/* rgb */ color: rgb(35, 31, 130);
/* oklch */ color: oklch(32.4% 0.158 274.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ca7',
    500: '#231f82',
    950: '#000000',
  },
}
SCSS
$custom: #231f82;
$custom-light: #6e5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#231f82",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 242.424,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.15818,
    "h": 274.8
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#231F82
secondary
#B0B548
accent
#E543DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231F82

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

Preview Lab → · Contrast checker → · Palette generator →

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