#231F87#231F87

#231F87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.165 H 274.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#231F87
RGBrgb(35, 31, 135)
HSLhsl(242, 63%, 33%)
HSVhsv(242, 77%, 53%)
CMYKcmyk(74.1%, 77%, 0%, 47.1%)
CIE-LABlab(20.39, 37.20, -56.76)
CIE-LCHlch(20.39, 67.86, 303.24°)
OKLaboklab(32.97% 0.0121 -0.1642)
OKLCHoklch(32.97% 0.165 274.2)
XYZxyz(5.5548, 3.0860, 23.2199)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F87 #83871F
analogous
#1F4F87 #231F87 #571F87
triadic
#231F87 #87231F #1F8723
tetradic
#231F87 #871F4F #83871F #1F8757
square
#231F87 #871F4F #83871F #1F8757
split-complementary
#231F87 #87571F #4F871F
monochromatic
#090823 #161455 #231F87 #302AB9 #504BD6

Accessibility & contrast

On white

12.98
#231F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#231F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F87
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F87#FFFFFF#000000##FFFFFF
##231F871.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #231f87;
/* rgb */ color: rgb(35, 31, 135);
/* oklch */ color: oklch(33.0% 0.165 274.2);
Tailwind
colors: {
  custom: {
    50: '#6f5cab',
    500: '#231f87',
    950: '#000000',
  },
}
SCSS
$custom: #231f87;
$custom-light: #6f5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#231f87",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 242.308,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32966,
    "c": 0.16461,
    "h": 274.2
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#231F87
secondary
#B4B84A
accent
#E642DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231F87

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

Preview Lab → · Contrast checker → · Palette generator →

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