#231D87#231D87

#231D87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.167 H 274.5°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#231D87
RGBrgb(35, 29, 135)
HSLhsl(243, 65%, 32%)
HSVhsv(243, 79%, 53%)
CMYKcmyk(74.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(19.98, 38.35, -57.42)
CIE-LCHlch(19.98, 69.05, 303.73°)
OKLaboklab(32.68% 0.0131 -0.1661)
OKLCHoklch(32.68% 0.167 274.5)
XYZxyz(5.5042, 2.9848, 23.2030)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D87 #81871D
analogous
#1D4C87 #231D87 #581D87
triadic
#231D87 #87231D #1D8723
tetradic
#231D87 #871D4C #81871D #1D8758
square
#231D87 #871D4C #81871D #1D8758
split-complementary
#231D87 #87581D #4C871D
monochromatic
#090722 #161255 #231D87 #3028B9 #4F47D7

Accessibility & contrast

On white

13.15
#231D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#231D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D87
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D87#FFFFFF#000000##FFFFFF
##231D871.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #231d87;
/* rgb */ color: rgb(35, 29, 135);
/* oklch */ color: oklch(32.7% 0.167 274.5);
Tailwind
colors: {
  custom: {
    50: '#6f5bab',
    500: '#231d87',
    950: '#000000',
  },
}
SCSS
$custom: #231d87;
$custom-light: #6f5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#231d87",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 243.396,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.1666,
    "h": 274.5
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#231D87
secondary
#B3B946
accent
#E840DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #231D87

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

Preview Lab → · Contrast checker → · Palette generator →

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