#232871#232871

#232871 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.124 H 274.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#232871
RGBrgb(35, 40, 113)
HSLhsl(236, 53%, 29%)
HSVhsv(236, 69%, 44%)
CMYKcmyk(69%, 64.6%, 0%, 55.7%)
CIE-LABlab(20.31, 23.45, -42.89)
CIE-LCHlch(20.31, 48.88, 298.67°)
OKLaboklab(32.24% 0.0089 -0.1236)
OKLCHoklch(32.24% 0.124 274.1)
XYZxyz(4.4316, 3.0668, 15.9780)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232871 #716C23
analogous
#234F71 #232871 #452371
triadic
#232871 #712328 #287123
tetradic
#232871 #71234F #716C23 #237145
square
#232871 #71234F #716C23 #237145
split-complementary
#232871 #714523 #4F7123
monochromatic
#070817 #151742 #232871 #3139A0 #4850C6

Accessibility & contrast

On white

13.02
#232871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#232871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232871
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232871#FFFFFF#000000##FFFFFF
##2328711.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #232871;
/* rgb */ color: rgb(35, 40, 113);
/* oklch */ color: oklch(32.2% 0.124 274.1);
Tailwind
colors: {
  custom: {
    50: '#69629a',
    500: '#232871',
    950: '#000000',
  },
}
SCSS
$custom: #232871;
$custom-light: #69629a;
$custom-dark: #000000;
JSON
{
  "hex": "#232871",
  "rgb": {
    "r": 35,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 236.154,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32244,
    "c": 0.12394,
    "h": 274.1
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#232871
secondary
#A49E4C
accent
#D34CDC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #232871

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

Preview Lab → · Contrast checker → · Palette generator →

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