#231979#231979

#231979 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 277.0°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#231979
RGBrgb(35, 25, 121)
HSLhsl(246, 66%, 29%)
HSVhsv(246, 79%, 47%)
CMYKcmyk(71.1%, 79.3%, 0%, 52.5%)
CIE-LABlab(17.61, 35.88, -52.46)
CIE-LCHlch(17.61, 63.56, 304.37°)
OKLaboklab(30.55% 0.0186 -0.1516)
OKLCHoklch(30.55% 0.153 277)
XYZxyz(4.4908, 2.4327, 18.3183)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231979 #6F7919
analogous
#193F79 #231979 #531979
triadic
#231979 #792319 #197923
tetradic
#231979 #79193F #6F7919 #197953
square
#231979 #79193F #6F7919 #197953
split-complementary
#231979 #795319 #3F7919
monochromatic
#070519 #140F46 #231979 #3223AC #4737D6

Accessibility & contrast

On white

14.13
#231979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#231979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231979
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231979#FFFFFF#000000##FFFFFF
##2319791.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231979;
/* rgb */ color: rgb(35, 25, 121);
/* oklch */ color: oklch(30.5% 0.153 277.0);
Tailwind
colors: {
  custom: {
    50: '#6c58a1',
    500: '#231979',
    950: '#000000',
  },
}
SCSS
$custom: #231979;
$custom-light: #6c58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#231979",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 246.25,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30545,
    "c": 0.15273,
    "h": 277
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#231979
secondary
#A2AE40
accent
#E93FD7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231979

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

Preview Lab → · Contrast checker → · Palette generator →

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