#231879#231879

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

Color values

HEX#231879
RGBrgb(35, 24, 121)
HSLhsl(247, 67%, 28%)
HSVhsv(247, 80%, 47%)
CMYKcmyk(71.1%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.42, 36.44, -52.78)
CIE-LCHlch(17.42, 64.14, 304.62°)
OKLaboklab(30.41% 0.0192 -0.1525)
OKLCHoklch(30.41% 0.154 277.2)
XYZxyz(4.4698, 2.3907, 18.3113)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231879 #6E7918
analogous
#183D79 #231879 #531879
triadic
#231879 #792318 #187923
tetradic
#231879 #79183D #6E7918 #187953
square
#231879 #79183D #6E7918 #187953
split-complementary
#231879 #795318 #3D7918
monochromatic
#07051A #140E46 #231879 #3222AC #4735D7

Accessibility & contrast

On white

14.21
#231879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231879
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231879#FFFFFF#000000##FFFFFF
##2318791.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.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: #231879;
/* rgb */ color: rgb(35, 24, 121);
/* oklch */ color: oklch(30.4% 0.154 277.2);
Tailwind
colors: {
  custom: {
    50: '#6c57a1',
    500: '#231879',
    950: '#000000',
  },
}
SCSS
$custom: #231879;
$custom-light: #6c57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#231879",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 246.804,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30409,
    "c": 0.15372,
    "h": 277.2
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#231879
secondary
#A1AE3F
accent
#EA3ED6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #231879

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

Preview Lab → · Contrast checker → · Palette generator →

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