#231887#231887

#231887 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.171 H 275.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#231887
RGBrgb(35, 24, 135)
HSLhsl(246, 70%, 31%)
HSVhsv(246, 82%, 53%)
CMYKcmyk(74.1%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.05, 41.02, -58.96)
CIE-LCHlch(19.05, 71.83, 304.83°)
OKLaboklab(32.03% 0.0154 -0.1705)
OKLCHoklch(32.03% 0.171 275.2)
XYZxyz(5.3915, 2.7593, 23.1654)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231887 #7C8718
analogous
#184487 #231887 #5A1887
triadic
#231887 #872318 #188723
tetradic
#231887 #871844 #7C8718 #18875A
square
#231887 #871844 #7C8718 #18875A
split-complementary
#231887 #875A18 #448718
monochromatic
#08061F #160F53 #231887 #3021BB #4D3DDC

Accessibility & contrast

On white

13.53
#231887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231887
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231887#FFFFFF#000000##FFFFFF
##2318871.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231887;
/* rgb */ color: rgb(35, 24, 135);
/* oklch */ color: oklch(32.0% 0.171 275.2);
Tailwind
colors: {
  custom: {
    50: '#7058ab',
    500: '#231887',
    950: '#000000',
  },
}
SCSS
$custom: #231887;
$custom-light: #7058ab;
$custom-dark: #000000;
JSON
{
  "hex": "#231887",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 245.946,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32031,
    "c": 0.17117,
    "h": 275.2
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#231887
secondary
#AFBB40
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #231887

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

Preview Lab → · Contrast checker → · Palette generator →

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