#031229#031229

#031229 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.4% C 0.052 H 256.8°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#031229
RGBrgb(3, 18, 41)
HSLhsl(216, 86%, 9%)
HSVhsv(216, 93%, 16%)
CMYKcmyk(92.7%, 56.1%, 0%, 83.9%)
CIE-LABlab(5.53, 2.96, -17.20)
CIE-LCHlch(5.53, 17.45, 279.76°)
OKLaboklab(18.39% -0.012 -0.0509)
OKLCHoklch(18.39% 0.052 256.8)
XYZxyz(0.6539, 0.6120, 2.1811)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031229 #291A03
analogous
#032529 #031229 #070329
triadic
#031229 #290312 #122903
tetradic
#031229 #290325 #291A03 #032907
square
#031229 #290325 #291A03 #032907
split-complementary
#031229 #290703 #252903
monochromatic
#020D1D #020D1D #031229 #072B62 #0B449B

Accessibility & contrast

On white

18.71
#031229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#031229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031229
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031229#FFFFFF#000000##FFFFFF
##0312291.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06142A
Deuteranopia (green-blind)
#021029
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #031229;
/* rgb */ color: rgb(3, 18, 41);
/* oklch */ color: oklch(18.4% 0.052 256.8);
Tailwind
colors: {
  custom: {
    50: '#494f63',
    500: '#031229',
    950: '#000000',
  },
}
SCSS
$custom: #031229;
$custom-light: #494f63;
$custom-dark: #000000;
JSON
{
  "hex": "#031229",
  "rgb": {
    "r": 3,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 216.316,
    "s": 86.364,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18393,
    "c": 0.05225,
    "h": 256.8
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#031229
secondary
#6D4D1B
accent
#AA2BFD
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #031229

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

Preview Lab → · Contrast checker → · Palette generator →

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