#231B87#231B87

#231B87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.169 H 274.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#231B87
RGBrgb(35, 27, 135)
HSLhsl(244, 67%, 32%)
HSVhsv(244, 80%, 53%)
CMYKcmyk(74.1%, 80%, 0%, 47.1%)
CIE-LABlab(19.60, 39.45, -58.06)
CIE-LCHlch(19.60, 70.19, 304.20°)
OKLaboklab(32.41% 0.0141 -0.1679)
OKLCHoklch(32.41% 0.169 274.8)
XYZxyz(5.4568, 2.8899, 23.1872)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B87 #7F871B
analogous
#1B4987 #231B87 #591B87
triadic
#231B87 #87231B #1B8723
tetradic
#231B87 #871B49 #7F871B #1B8759
square
#231B87 #871B49 #7F871B #1B8759
split-complementary
#231B87 #87591B #49871B
monochromatic
#090721 #161154 #231B87 #3025BA #4E43D9

Accessibility & contrast

On white

13.31
#231B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#231B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B87
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B87#FFFFFF#000000##FFFFFF
##231B871.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231b87;
/* rgb */ color: rgb(35, 27, 135);
/* oklch */ color: oklch(32.4% 0.169 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f5aab',
    500: '#231b87',
    950: '#000000',
  },
}
SCSS
$custom: #231b87;
$custom-light: #6f5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#231b87",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 244.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32411,
    "c": 0.1685,
    "h": 274.8
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#231B87
secondary
#B1BA44
accent
#EA3EDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #231B87

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

Preview Lab → · Contrast checker → · Palette generator →

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