#231987#231987

#231987 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.170 H 275.0°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#231987
RGBrgb(35, 25, 135)
HSLhsl(245, 69%, 31%)
HSVhsv(245, 81%, 53%)
CMYKcmyk(74.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.23, 40.51, -58.67)
CIE-LCHlch(19.23, 71.29, 304.63°)
OKLaboklab(32.16% 0.015 -0.1696)
OKLCHoklch(32.16% 0.17 275)
XYZxyz(5.4125, 2.8013, 23.1724)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231987 #7D8719
analogous
#194687 #231987 #5A1987
triadic
#231987 #872319 #198723
tetradic
#231987 #871946 #7D8719 #19875A
square
#231987 #871946 #7D8719 #19875A
split-complementary
#231987 #875A19 #468719
monochromatic
#080620 #160F53 #231987 #3023BB #4D3FDB

Accessibility & contrast

On white

13.46
#231987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#231987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231987
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231987#FFFFFF#000000##FFFFFF
##2319871.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231987;
/* rgb */ color: rgb(35, 25, 135);
/* oklch */ color: oklch(32.2% 0.170 275.0);
Tailwind
colors: {
  custom: {
    50: '#6f59ab',
    500: '#231987',
    950: '#000000',
  },
}
SCSS
$custom: #231987;
$custom-light: #6f59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#231987",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 245.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32155,
    "c": 0.17031,
    "h": 275
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#231987
secondary
#AFBA41
accent
#EC3CDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #231987

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

Preview Lab → · Contrast checker → · Palette generator →

#231987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva