#231888#231888

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

Color values

HEX#231888
RGBrgb(35, 24, 136)
HSLhsl(246, 70%, 31%)
HSVhsv(246, 82%, 53%)
CMYKcmyk(74.3%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.17, 41.35, -59.39)
CIE-LCHlch(19.17, 72.37, 304.84°)
OKLaboklab(32.15% 0.0151 -0.1717)
OKLCHoklch(32.15% 0.172 275)
XYZxyz(5.4622, 2.7876, 23.5380)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231888 #7D8818
analogous
#184588 #231888 #5B1888
triadic
#231888 #882318 #188823
tetradic
#231888 #881845 #7D8818 #18885B
square
#231888 #881845 #7D8818 #18885B
split-complementary
#231888 #885B18 #458818
monochromatic
#080620 #160F54 #231888 #3021BC #4D3EDD

Accessibility & contrast

On white

13.48
#231888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231888
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231888#FFFFFF#000000##FFFFFF
##2318881.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231888;
/* rgb */ color: rgb(35, 24, 136);
/* oklch */ color: oklch(32.1% 0.172 275.0);
Tailwind
colors: {
  custom: {
    50: '#7058ac',
    500: '#231888',
    950: '#000000',
  },
}
SCSS
$custom: #231888;
$custom-light: #7058ac;
$custom-dark: #000000;
JSON
{
  "hex": "#231888",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 245.893,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32149,
    "c": 0.17239,
    "h": 275
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231888

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

Preview Lab → · Contrast checker → · Palette generator →

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