#031232#031232

#031232 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.2% C 0.068 H 261.3°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#031232
RGBrgb(3, 18, 50)
HSLhsl(221, 89%, 10%)
HSVhsv(221, 94%, 20%)
CMYKcmyk(94%, 64%, 0%, 80.4%)
CIE-LABlab(6.16, 7.41, -22.89)
CIE-LCHlch(6.16, 24.06, 287.95°)
OKLaboklab(19.24% -0.0103 -0.0669)
OKLCHoklch(19.24% 0.068 261.3)
XYZxyz(0.8294, 0.6822, 3.1050)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031232 #322303
analogous
#032932 #031232 #0B0332
triadic
#031232 #320312 #123203
tetradic
#031232 #320329 #322303 #03320B
square
#031232 #320329 #322303 #03320B
split-complementary
#031232 #320B03 #293203
monochromatic
#020A1D #020A1D #031232 #06276C #0A3CA5

Accessibility & contrast

On white

18.48
#031232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#031232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031232
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031232#FFFFFF#000000##FFFFFF
##0312321.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#001231
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #031232;
/* rgb */ color: rgb(3, 18, 50);
/* oklch */ color: oklch(19.2% 0.068 261.3);
Tailwind
colors: {
  custom: {
    50: '#4b4f6a',
    500: '#031232',
    950: '#000000',
  },
}
SCSS
$custom: #031232;
$custom-light: #4b4f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#031232",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 220.851,
    "s": 88.679,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19242,
    "c": 0.06765,
    "h": 261.3
  },
  "luminance": 0.00682
}

Semantic roles & 50–950 ramp

primary
#031232
secondary
#75591B
accent
#BB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #031232

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

Preview Lab → · Contrast checker → · Palette generator →

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