#232371#232371

#232371 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.131 H 275.8°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#232371
RGBrgb(35, 35, 113)
HSLhsl(240, 53%, 29%)
HSVhsv(240, 69%, 44%)
CMYKcmyk(69%, 69%, 0%, 55.7%)
CIE-LABlab(19.02, 26.85, -45.00)
CIE-LCHlch(19.02, 52.40, 300.83°)
OKLaboklab(31.3% 0.0132 -0.1298)
OKLCHoklch(31.3% 0.131 275.8)
XYZxyz(4.2738, 2.7513, 15.9254)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232371 #717123
analogous
#234A71 #232371 #4A2371
triadic
#232371 #712323 #237123
tetradic
#232371 #71234A #717123 #23714A
square
#232371 #71234A #717123 #23714A
split-complementary
#232371 #714A23 #4A7123
monochromatic
#070717 #151542 #232371 #3131A0 #4848C6

Accessibility & contrast

On white

13.54
#232371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#232371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232371
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232371#FFFFFF#000000##FFFFFF
##2323711.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #232371;
/* rgb */ color: rgb(35, 35, 113);
/* oklch */ color: oklch(31.3% 0.131 275.8);
Tailwind
colors: {
  custom: {
    50: '#695e9b',
    500: '#232371',
    950: '#000000',
  },
}
SCSS
$custom: #232371;
$custom-light: #695e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#232371",
  "rgb": {
    "r": 35,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.313,
    "c": 0.13051,
    "h": 275.8
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#232371
secondary
#A4A44C
accent
#DC4CDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #232371

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

Preview Lab → · Contrast checker → · Palette generator →

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