#231B71#231B71

#231B71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.140 H 277.9°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#231B71
RGBrgb(35, 27, 113)
HSLhsl(246, 61%, 27%)
HSVhsv(246, 76%, 44%)
CMYKcmyk(69%, 76.1%, 0%, 55.7%)
CIE-LABlab(17.15, 31.98, -48.07)
CIE-LCHlch(17.15, 57.74, 303.63°)
OKLaboklab(29.95% 0.0193 -0.1388)
OKLCHoklch(29.95% 0.14 277.9)
XYZxyz(4.0647, 2.3331, 15.8557)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231B71 #69711B
analogous
#1B3E71 #231B71 #4E1B71
triadic
#231B71 #71231B #1B7123
tetradic
#231B71 #711B3E #69711B #1B714E
square
#231B71 #711B3E #69711B #1B714E
split-complementary
#231B71 #714E1B #3E711B
monochromatic
#080619 #140F40 #231B71 #3227A2 #4537CF

Accessibility & contrast

On white

14.32
#231B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#231B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231B71
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231B71#FFFFFF#000000##FFFFFF
##231B711.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #231b71;
/* rgb */ color: rgb(35, 27, 113);
/* oklch */ color: oklch(30.0% 0.140 277.9);
Tailwind
colors: {
  custom: {
    50: '#6a599b',
    500: '#231b71',
    950: '#000000',
  },
}
SCSS
$custom: #231b71;
$custom-light: #6a599b;
$custom-dark: #000000;
JSON
{
  "hex": "#231b71",
  "rgb": {
    "r": 35,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 245.581,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.14015,
    "h": 277.9
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#231B71
secondary
#9CA642
accent
#E543D6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231B71

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

Preview Lab → · Contrast checker → · Palette generator →

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