#231872#231872

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

Color values

HEX#231872
RGBrgb(35, 24, 114)
HSLhsl(247, 65%, 27%)
HSVhsv(247, 79%, 45%)
CMYKcmyk(69.3%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.63, 34.09, -49.58)
CIE-LCHlch(16.63, 60.17, 304.52°)
OKLaboklab(29.62% 0.021 -0.1432)
OKLCHoklch(29.62% 0.145 278.3)
XYZxyz(4.0561, 2.2252, 16.1321)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231872 #677218
analogous
#183A72 #231872 #501872
triadic
#231872 #722318 #187223
tetradic
#231872 #72183A #677218 #187250
square
#231872 #72183A #677218 #187250
split-complementary
#231872 #725018 #3A7218
monochromatic
#080519 #130D3F #231872 #3323A5 #4531D4

Accessibility & contrast

On white

14.53
#231872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231872
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231872#FFFFFF#000000##FFFFFF
##2318721.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231872;
/* rgb */ color: rgb(35, 24, 114);
/* oklch */ color: oklch(29.6% 0.145 278.3);
Tailwind
colors: {
  custom: {
    50: '#6a579c',
    500: '#231872',
    950: '#000000',
  },
}
SCSS
$custom: #231872;
$custom-light: #6a579c;
$custom-dark: #000000;
JSON
{
  "hex": "#231872",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 247.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.14471,
    "h": 278.3
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

primary
#231872
secondary
#9BA73E
accent
#E840D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231872

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

Preview Lab → · Contrast checker → · Palette generator →

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