#231B81#231B81

#231B81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.161 H 275.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#231B81
RGBrgb(35, 27, 129)
HSLhsl(245, 65%, 31%)
HSVhsv(245, 79%, 51%)
CMYKcmyk(72.9%, 79.1%, 0%, 49.4%)
CIE-LABlab(18.91, 37.45, -55.41)
CIE-LCHlch(18.91, 66.88, 304.05°)
OKLaboklab(31.73% 0.0156 -0.1602)
OKLCHoklch(31.73% 0.161 275.5)
XYZxyz(5.0462, 2.7257, 21.0248)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B81 #79811B
analogous
#1B4681 #231B81 #561B81
triadic
#231B81 #81231B #1B8123
tetradic
#231B81 #811B46 #79811B #1B8156
square
#231B81 #811B46 #79811B #1B8156
split-complementary
#231B81 #81561B #46811B
monochromatic
#08061C #15104E #231B81 #3126B4 #4B3FD7

Accessibility & contrast

On white

13.59
#231B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#231B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B81
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B81#FFFFFF#000000##FFFFFF
##231B811.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #231b81;
/* rgb */ color: rgb(35, 27, 129);
/* oklch */ color: oklch(31.7% 0.161 275.5);
Tailwind
colors: {
  custom: {
    50: '#6e5aa7',
    500: '#231b81',
    950: '#000000',
  },
}
SCSS
$custom: #231b81;
$custom-light: #6e5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#231b81",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 244.706,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31726,
    "c": 0.16095,
    "h": 275.5
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#231B81
secondary
#ACB543
accent
#E83FDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #231B81

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

Preview Lab → · Contrast checker → · Palette generator →

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