#031246#031246

#031246 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.099 H 264.5°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#031246
RGBrgb(3, 18, 70)
HSLhsl(227, 92%, 14%)
HSVhsv(227, 96%, 27%)
CMYKcmyk(95.7%, 74.3%, 0%, 72.5%)
CIE-LABlab(8.08, 17.58, -34.15)
CIE-LCHlch(8.08, 38.41, 297.25°)
OKLaboklab(21.43% -0.0095 -0.099)
OKLCHoklch(21.43% 0.099 264.5)
XYZxyz(1.3590, 0.8940, 5.8941)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031246 #463703
analogous
#033446 #031246 #160346
triadic
#031246 #460312 #124603
tetradic
#031246 #460334 #463703 #034616
square
#031246 #460334 #463703 #034616
split-complementary
#031246 #461603 #344603
monochromatic
#01081D #01081D #031246 #062181 #0830BB

Accessibility & contrast

On white

17.81
#031246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#031246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031246
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031246#FFFFFF#000000##FFFFFF
##0312461.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #031246;
/* rgb */ color: rgb(3, 18, 70);
/* oklch */ color: oklch(21.4% 0.099 264.5);
Tailwind
colors: {
  custom: {
    50: '#534f7a',
    500: '#031246',
    950: '#000000',
  },
}
SCSS
$custom: #031246;
$custom-light: #534f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#031246",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 226.567,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21431,
    "c": 0.09947,
    "h": 264.5
  },
  "luminance": 0.00894
}

Semantic roles & 50–950 ramp

primary
#031246
secondary
#87701D
accent
#CF29FF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #031246

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

Preview Lab → · Contrast checker → · Palette generator →

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