#231478#231478

#231478 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.156 H 277.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#231478
RGBrgb(35, 20, 120)
HSLhsl(249, 71%, 27%)
HSVhsv(249, 83%, 47%)
CMYKcmyk(70.8%, 83.3%, 0%, 52.9%)
CIE-LABlab(16.57, 38.22, -53.54)
CIE-LCHlch(16.57, 65.78, 305.52°)
OKLaboklab(29.78% 0.0215 -0.1547)
OKLCHoklch(29.78% 0.156 277.9)
XYZxyz(4.3324, 2.2133, 17.9646)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231478 #697814
analogous
#143778 #231478 #551478
triadic
#231478 #782314 #147823
tetradic
#231478 #781437 #697814 #147855
square
#231478 #781437 #697814 #147855
split-complementary
#231478 #785514 #377814
monochromatic
#08041A #140B44 #231478 #321DAC #452BDC

Accessibility & contrast

On white

14.56
#231478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#231478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231478
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231478#FFFFFF#000000##FFFFFF
##2314781.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231478;
/* rgb */ color: rgb(35, 20, 120);
/* oklch */ color: oklch(29.8% 0.156 277.9);
Tailwind
colors: {
  custom: {
    50: '#6c55a0',
    500: '#231478',
    950: '#000000',
  },
}
SCSS
$custom: #231478;
$custom-light: #6c55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#231478",
  "rgb": {
    "r": 35,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 249,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29783,
    "c": 0.15616,
    "h": 277.9
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#231478
secondary
#9CAE3A
accent
#EE3AD3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231478

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

Preview Lab → · Contrast checker → · Palette generator →

#231478 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva