#231FB4#231FB4

#231FB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.219 H 270.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#231FB4
RGBrgb(35, 31, 180)
HSLhsl(242, 71%, 41%)
HSVhsv(242, 83%, 71%)
CMYKcmyk(80.6%, 82.8%, 0%, 29.4%)
CIE-LABlab(25.66, 51.82, -75.55)
CIE-LCHlch(25.66, 91.62, 304.44°)
OKLaboklab(38.19% 0.0021 -0.2187)
OKLCHoklch(38.19% 0.219 270.5)
XYZxyz(9.4186, 4.6315, 43.5687)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231FB4 #B0B41F
analogous
#1F66B4 #231FB4 #6E1FB4
triadic
#231FB4 #B4231F #1FB423
tetradic
#231FB4 #B41F66 #B0B41F #1FB46E
square
#231FB4 #B41F66 #B0B41F #1FB46E
split-complementary
#231FB4 #B46E1F #66B41F
monochromatic
#0F0D4C #191680 #231FB4 #3934DC #6C68E5

Accessibility & contrast

On white

10.90
#231FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#231FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231FB4
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231FB4#FFFFFF#000000##FFFFFF
##231FB41.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0035B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #231fb4;
/* rgb */ color: rgb(35, 31, 180);
/* oklch */ color: oklch(38.2% 0.219 270.5);
Tailwind
colors: {
  custom: {
    50: '#7a5fcc',
    500: '#231fb4',
    950: '#000000',
  },
}
SCSS
$custom: #231fb4;
$custom-light: #7a5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#231fb4",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 241.611,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.2187,
    "h": 270.5
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#231FB4
secondary
#C8CB64
accent
#ED3AE9
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #231FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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