#231978#231978

#231978 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.151 H 277.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#231978
RGBrgb(35, 25, 120)
HSLhsl(246, 66%, 28%)
HSVhsv(246, 79%, 47%)
CMYKcmyk(70.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.50, 35.55, -52.00)
CIE-LCHlch(17.50, 62.99, 304.35°)
OKLaboklab(30.43% 0.0189 -0.1503)
OKLCHoklch(30.43% 0.151 277.2)
XYZxyz(4.4298, 2.4083, 17.9970)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231978 #6E7819
analogous
#193E78 #231978 #521978
triadic
#231978 #782319 #197823
tetradic
#231978 #78193E #6E7819 #197852
square
#231978 #78193E #6E7819 #197852
split-complementary
#231978 #785219 #3E7819
monochromatic
#070519 #140E45 #231978 #3224AB #4736D5

Accessibility & contrast

On white

14.17
#231978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#231978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231978
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231978#FFFFFF#000000##FFFFFF
##2319781.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231978;
/* rgb */ color: rgb(35, 25, 120);
/* oklch */ color: oklch(30.4% 0.151 277.2);
Tailwind
colors: {
  custom: {
    50: '#6c58a0',
    500: '#231978',
    950: '#000000',
  },
}
SCSS
$custom: #231978;
$custom-light: #6c58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#231978",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 246.316,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30432,
    "c": 0.15145,
    "h": 277.2
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#231978
secondary
#A1AD40
accent
#E83FD7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #231978

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

Preview Lab → · Contrast checker → · Palette generator →

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