#231D78#231D78

#231D78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.147 H 276.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#231D78
RGBrgb(35, 29, 120)
HSLhsl(244, 61%, 29%)
HSVhsv(244, 76%, 47%)
CMYKcmyk(70.8%, 75.8%, 0%, 52.9%)
CIE-LABlab(18.33, 33.20, -50.64)
CIE-LCHlch(18.33, 60.55, 303.25°)
OKLaboklab(31.02% 0.0164 -0.1463)
OKLCHoklch(31.02% 0.147 276.4)
XYZxyz(4.5216, 2.5917, 18.0276)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231D78 #72781D
analogous
#1D4578 #231D78 #511D78
triadic
#231D78 #78231D #1D7823
tetradic
#231D78 #781D45 #72781D #1D7851
square
#231D78 #781D45 #72781D #1D7851
split-complementary
#231D78 #78511D #45781D
monochromatic
#070619 #151147 #231D78 #3129A9 #483FD1

Accessibility & contrast

On white

13.83
#231D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231D78
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231D78#FFFFFF#000000##FFFFFF
##231D781.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231d78;
/* rgb */ color: rgb(35, 29, 120);
/* oklch */ color: oklch(31.0% 0.147 276.4);
Tailwind
colors: {
  custom: {
    50: '#6b5aa0',
    500: '#231d78',
    950: '#000000',
  },
}
SCSS
$custom: #231d78;
$custom-light: #6b5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#231d78",
  "rgb": {
    "r": 35,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 243.956,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31019,
    "c": 0.14723,
    "h": 276.4
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#231D78
secondary
#A5AC45
accent
#E444DA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #231D78

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

Preview Lab → · Contrast checker → · Palette generator →

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