#231971#231971

#231971 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.142 H 278.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#231971
RGBrgb(35, 25, 113)
HSLhsl(247, 64%, 27%)
HSVhsv(247, 78%, 44%)
CMYKcmyk(69%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.72, 33.17, -48.77)
CIE-LCHlch(16.72, 58.98, 304.22°)
OKLaboklab(29.65% 0.0206 -0.1408)
OKLCHoklch(29.65% 0.142 278.3)
XYZxyz(4.0204, 2.2445, 15.8409)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231971 #677119
analogous
#193B71 #231971 #4F1971
triadic
#231971 #712319 #197123
tetradic
#231971 #71193B #677119 #19714F
square
#231971 #71193B #677119 #19714F
split-complementary
#231971 #714F19 #3B7119
monochromatic
#080619 #130E3F #231971 #3324A3 #4533D2

Accessibility & contrast

On white

14.49
#231971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#231971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231971
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231971#FFFFFF#000000##FFFFFF
##2319711.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231971;
/* rgb */ color: rgb(35, 25, 113);
/* oklch */ color: oklch(29.7% 0.142 278.3);
Tailwind
colors: {
  custom: {
    50: '#6a579b',
    500: '#231971',
    950: '#000000',
  },
}
SCSS
$custom: #231971;
$custom-light: #6a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#231971",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 246.818,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29653,
    "c": 0.14235,
    "h": 278.3
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#231971
secondary
#9BA640
accent
#E741D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231971

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

Preview Lab → · Contrast checker → · Palette generator →

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