#231FAB#231FAB

#231FAB is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.208 H 271.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#231FAB
RGBrgb(35, 31, 171)
HSLhsl(242, 69%, 40%)
HSVhsv(242, 82%, 67%)
CMYKcmyk(79.5%, 81.9%, 0%, 32.9%)
CIE-LABlab(24.57, 49.02, -71.97)
CIE-LCHlch(24.57, 87.08, 304.26°)
OKLaboklab(37.11% 0.0041 -0.2083)
OKLCHoklch(37.11% 0.208 271.1)
XYZxyz(8.5313, 4.2766, 38.8960)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FAB #A7AB1F
analogous
#1F61AB #231FAB #691FAB
triadic
#231FAB #AB231F #1FAB23
tetradic
#231FAB #AB1F61 #A7AB1F #1FAB69
square
#231FAB #AB1F61 #A7AB1F #1FAB69
split-complementary
#231FAB #AB691F #61AB1F
monochromatic
#0E0C43 #181677 #231FAB #332ED9 #6662E3

Accessibility & contrast

On white

11.32
#231FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#231FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FAB
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FAB#FFFFFF#000000##FFFFFF
##231FAB1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0033A9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #231fab;
/* rgb */ color: rgb(35, 31, 171);
/* oklch */ color: oklch(37.1% 0.208 271.1);
Tailwind
colors: {
  custom: {
    50: '#785fc5',
    500: '#231fab',
    950: '#000000',
  },
}
SCSS
$custom: #231fab;
$custom-light: #785fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#231fab",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 241.714,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37114,
    "c": 0.20835,
    "h": 271.1
  },
  "luminance": 0.04278
}

Semantic roles & 50–950 ramp

primary
#231FAB
secondary
#C4C75E
accent
#EC3CE7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #231FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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