#231871#231871

#231871 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.143 H 278.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#231871
RGBrgb(35, 24, 113)
HSLhsl(247, 65%, 27%)
HSVhsv(247, 79%, 44%)
CMYKcmyk(69%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.52, 33.75, -49.11)
CIE-LCHlch(16.52, 59.59, 304.50°)
OKLaboklab(29.51% 0.0213 -0.1418)
OKLCHoklch(29.51% 0.143 278.5)
XYZxyz(3.9994, 2.2025, 15.8339)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231871 #667118
analogous
#183A71 #231871 #501871
triadic
#231871 #712318 #187123
tetradic
#231871 #71183A #667118 #187150
square
#231871 #71183A #667118 #187150
split-complementary
#231871 #715018 #3A7118
monochromatic
#080519 #130D3F #231871 #3323A3 #4430D3

Accessibility & contrast

On white

14.58
#231871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231871
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231871#FFFFFF#000000##FFFFFF
##2318711.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231871;
/* rgb */ color: rgb(35, 24, 113);
/* oklch */ color: oklch(29.5% 0.143 278.5);
Tailwind
colors: {
  custom: {
    50: '#6a579b',
    500: '#231871',
    950: '#000000',
  },
}
SCSS
$custom: #231871;
$custom-light: #6a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#231871",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 247.416,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29508,
    "c": 0.14341,
    "h": 278.5
  },
  "luminance": 0.02203
}

Semantic roles & 50–950 ramp

primary
#231871
secondary
#9AA63E
accent
#E840D3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231871

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

Preview Lab → · Contrast checker → · Palette generator →

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