#231878#231878

#231878 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.152 H 277.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#231878
RGBrgb(35, 24, 120)
HSLhsl(247, 67%, 28%)
HSVhsv(247, 80%, 47%)
CMYKcmyk(70.8%, 80%, 0%, 52.9%)
CIE-LABlab(17.30, 36.10, -52.33)
CIE-LCHlch(17.30, 63.57, 304.60°)
OKLaboklab(30.3% 0.0194 -0.1512)
OKLCHoklch(30.3% 0.152 277.3)
XYZxyz(4.4088, 2.3663, 17.9901)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231878 #6D7818
analogous
#183D78 #231878 #531878
triadic
#231878 #782318 #187823
tetradic
#231878 #78183D #6D7818 #187853
square
#231878 #78183D #6D7818 #187853
split-complementary
#231878 #785318 #3D7818
monochromatic
#07051A #140E45 #231878 #3222AB #4734D6

Accessibility & contrast

On white

14.25
#231878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#231878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231878
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231878#FFFFFF#000000##FFFFFF
##2318781.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #231878;
/* rgb */ color: rgb(35, 24, 120);
/* oklch */ color: oklch(30.3% 0.152 277.3);
Tailwind
colors: {
  custom: {
    50: '#6c57a0',
    500: '#231878',
    950: '#000000',
  },
}
SCSS
$custom: #231878;
$custom-light: #6c57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#231878",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 246.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30295,
    "c": 0.15244,
    "h": 277.3
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #231878

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

Preview Lab → · Contrast checker → · Palette generator →

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