#231571#231571

#231571 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 279.1°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#231571
RGBrgb(35, 21, 113)
HSLhsl(249, 69%, 26%)
HSVhsv(249, 81%, 44%)
CMYKcmyk(69%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.93, 35.43, -50.08)
CIE-LCHlch(15.93, 61.34, 305.28°)
OKLaboklab(29.1% 0.0231 -0.1446)
OKLCHoklch(29.1% 0.146 279.1)
XYZxyz(3.9410, 2.0856, 15.8145)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231571 #637115
analogous
#153571 #231571 #511571
triadic
#231571 #712315 #157123
tetradic
#231571 #711535 #637115 #157151
square
#231571 #711535 #637115 #157151
split-complementary
#231571 #715115 #357115
monochromatic
#08051A #130B3D #231571 #331FA5 #4429D7

Accessibility & contrast

On white

14.82
#231571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#231571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231571
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231571#FFFFFF#000000##FFFFFF
##2315711.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #231571;
/* rgb */ color: rgb(35, 21, 113);
/* oklch */ color: oklch(29.1% 0.146 279.1);
Tailwind
colors: {
  custom: {
    50: '#6a559b',
    500: '#231571',
    950: '#000000',
  },
}
SCSS
$custom: #231571;
$custom-light: #6a559b;
$custom-dark: #000000;
JSON
{
  "hex": "#231571",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 249.13,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29097,
    "c": 0.14645,
    "h": 279.1
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#231571
secondary
#97A73B
accent
#EB3CD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231571

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

Preview Lab → · Contrast checker → · Palette generator →

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