#232171#232171

#232171 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 276.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#232171
RGBrgb(35, 33, 113)
HSLhsl(242, 55%, 29%)
HSVhsv(242, 71%, 44%)
CMYKcmyk(69%, 70.8%, 0%, 55.7%)
CIE-LABlab(18.53, 28.18, -45.80)
CIE-LCHlch(18.53, 53.78, 301.60°)
OKLaboklab(30.94% 0.0148 -0.1322)
OKLCHoklch(30.94% 0.133 276.4)
XYZxyz(4.2167, 2.6369, 15.9063)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232171 #6F7121
analogous
#214771 #232171 #4B2171
triadic
#232171 #712321 #217123
tetradic
#232171 #712147 #6F7121 #21714B
square
#232171 #712147 #6F7121 #21714B
split-complementary
#232171 #714B21 #477121
monochromatic
#070718 #141342 #232171 #322FA0 #4744C8

Accessibility & contrast

On white

13.75
#232171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#232171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232171
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232171#FFFFFF#000000##FFFFFF
##2321711.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #232171;
/* rgb */ color: rgb(35, 33, 113);
/* oklch */ color: oklch(30.9% 0.133 276.4);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#232171',
    950: '#000000',
  },
}
SCSS
$custom: #232171;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#232171",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 241.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.13302,
    "h": 276.4
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#232171
secondary
#A2A549
accent
#DE4ADA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #232171

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

Preview Lab → · Contrast checker → · Palette generator →

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