#231988#231988

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

Color values

HEX#231988
RGBrgb(35, 25, 136)
HSLhsl(245, 69%, 32%)
HSVhsv(245, 82%, 53%)
CMYKcmyk(74.3%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.35, 40.84, -59.10)
CIE-LCHlch(19.35, 71.83, 304.64°)
OKLaboklab(32.27% 0.0147 -0.1709)
OKLCHoklch(32.27% 0.172 274.9)
XYZxyz(5.4832, 2.8296, 23.5450)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231988 #7E8819
analogous
#194788 #231988 #5B1988
triadic
#231988 #882319 #198823
tetradic
#231988 #881947 #7E8819 #19885B
square
#231988 #881947 #7E8819 #19885B
split-complementary
#231988 #885B19 #478819
monochromatic
#080621 #160F54 #231988 #3023BC #4E40DC

Accessibility & contrast

On white

13.41
#231988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#231988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231988
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231988#FFFFFF#000000##FFFFFF
##2319881.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #231988;
/* rgb */ color: rgb(35, 25, 136);
/* oklch */ color: oklch(32.3% 0.172 274.9);
Tailwind
colors: {
  custom: {
    50: '#7059ac',
    500: '#231988',
    950: '#000000',
  },
}
SCSS
$custom: #231988;
$custom-light: #7059ac;
$custom-dark: #000000;
JSON
{
  "hex": "#231988",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 245.405,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32271,
    "c": 0.17153,
    "h": 274.9
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231988

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

Preview Lab → · Contrast checker → · Palette generator →

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