#031236#031236

#031236 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.074 H 262.4°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#031236
RGBrgb(3, 18, 54)
HSLhsl(222, 89%, 11%)
HSVhsv(222, 94%, 21%)
CMYKcmyk(94.4%, 66.7%, 0%, 78.8%)
CIE-LABlab(6.49, 9.61, -25.30)
CIE-LCHlch(6.49, 27.06, 290.80°)
OKLaboklab(19.65% -0.0098 -0.0736)
OKLCHoklch(19.65% 0.074 262.4)
XYZxyz(0.9195, 0.7182, 3.5795)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031236 #362703
analogous
#032B36 #031236 #0D0336
triadic
#031236 #360312 #123603
tetradic
#031236 #36032B #362703 #03360D
square
#031236 #36032B #362703 #03360D
split-complementary
#031236 #360D03 #2B3603
monochromatic
#020A1D #020A1D #031236 #062570 #0939AA

Accessibility & contrast

On white

18.36
#031236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #031236
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031236#FFFFFF#000000##FFFFFF
##0312361.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #031236;
/* rgb */ color: rgb(3, 18, 54);
/* oklch */ color: oklch(19.7% 0.074 262.4);
Tailwind
colors: {
  custom: {
    50: '#4d4f6d',
    500: '#031236',
    950: '#000000',
  },
}
SCSS
$custom: #031236;
$custom-light: #4d4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#031236",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 222.353,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.1965,
    "c": 0.07431,
    "h": 262.4
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#031236
secondary
#795E1C
accent
#C029FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #031236

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

Preview Lab → · Contrast checker → · Palette generator →

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