#231EB4#231EB4

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

Color values

HEX#231EB4
RGBrgb(35, 30, 180)
HSLhsl(242, 71%, 41%)
HSVhsv(242, 83%, 71%)
CMYKcmyk(80.6%, 83.3%, 0%, 29.4%)
CIE-LABlab(25.50, 52.27, -75.81)
CIE-LCHlch(25.50, 92.09, 304.59°)
OKLaboklab(38.08% 0.0023 -0.2194)
OKLCHoklch(38.08% 0.219 270.6)
XYZxyz(9.3928, 4.5801, 43.5602)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231EB4 #AFB41E
analogous
#1E64B4 #231EB4 #6E1EB4
triadic
#231EB4 #B4231E #1EB423
tetradic
#231EB4 #B41E64 #AFB41E #1EB46E
square
#231EB4 #B41E64 #AFB41E #1EB46E
split-complementary
#231EB4 #B46E1E #64B41E
monochromatic
#0F0D4B #191580 #231EB4 #3832DD #6B67E6

Accessibility & contrast

On white

10.96
#231EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#231EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231EB4
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231EB4#FFFFFF#000000##FFFFFF
##231EB41.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231eb4;
/* rgb */ color: rgb(35, 30, 180);
/* oklch */ color: oklch(38.1% 0.219 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fcc',
    500: '#231eb4',
    950: '#000000',
  },
}
SCSS
$custom: #231eb4;
$custom-light: #7a5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#231eb4",
  "rgb": {
    "r": 35,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 242,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38078,
    "c": 0.21942,
    "h": 270.6
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#231EB4
secondary
#C7CB63
accent
#EE3AE8
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #231EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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