#231F85#231F85

#231F85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.162 H 274.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#231F85
RGBrgb(35, 31, 133)
HSLhsl(242, 62%, 32%)
HSVhsv(242, 77%, 52%)
CMYKcmyk(73.7%, 76.7%, 0%, 47.8%)
CIE-LABlab(20.16, 36.52, -55.86)
CIE-LCHlch(20.16, 66.74, 303.17°)
OKLaboklab(32.74% 0.0126 -0.1616)
OKLCHoklch(32.74% 0.162 274.4)
XYZxyz(5.4154, 3.0302, 22.4853)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F85 #81851F
analogous
#1F4E85 #231F85 #561F85
triadic
#231F85 #85231F #1F8523
tetradic
#231F85 #851F4E #81851F #1F8556
square
#231F85 #851F4E #81851F #1F8556
split-complementary
#231F85 #85561F #4E851F
monochromatic
#090822 #161353 #231F85 #302BB7 #4F4AD5

Accessibility & contrast

On white

13.07
#231F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#231F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F85
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F85#FFFFFF#000000##FFFFFF
##231F851.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #231f85;
/* rgb */ color: rgb(35, 31, 133);
/* oklch */ color: oklch(32.7% 0.162 274.4);
Tailwind
colors: {
  custom: {
    50: '#6e5caa',
    500: '#231f85',
    950: '#000000',
  },
}
SCSS
$custom: #231f85;
$custom-light: #6e5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#231f85",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 242.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32744,
    "c": 0.16205,
    "h": 274.4
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#231F85
secondary
#B3B749
accent
#E543DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231F85

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

Preview Lab → · Contrast checker → · Palette generator →

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