#00031F#00031F

#00031F is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.3% C 0.065 H 263.4°. Best body text is #FFFFFF at 20.33:1 contrast (WCAG AA passes).

Color values

HEX#00031F
RGBrgb(0, 3, 31)
HSLhsl(234, 100%, 6%)
HSVhsv(234, 100%, 12%)
CMYKcmyk(100%, 90.3%, 0%, 87.8%)
CIE-LABlab(1.48, 5.08, -15.72)
CIE-LCHlch(1.48, 16.52, 287.89°)
OKLaboklab(12.3% -0.0074 -0.0647)
OKLCHoklch(12.3% 0.065 263.4)
XYZxyz(0.2798, 0.1640, 1.3130)
Luminance0.0016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#00031F #1F1C00
analogous
#00121F #00031F #0C001F
triadic
#00031F #1F0003 #031F00
tetradic
#00031F #1F0012 #1F1C00 #001F0C
square
#00031F #1F0012 #1F1C00 #001F0C
split-complementary
#00031F #1F0C00 #121F00
monochromatic
#00031F #00031F #00031F #00095C #000F99

Accessibility & contrast

On white

20.33
#00031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#00031F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #00031F
20.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##00031F#FFFFFF#000000##FFFFFF
##00031F1.0020.331.0320.33
#FFFFFF20.331.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000720
Deuteranopia (green-blind)
#00041E
Tritanopia (blue-blind)
#00090F
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #00031f;
/* rgb */ color: rgb(0, 3, 31);
/* oklch */ color: oklch(12.3% 0.065 263.4);
Tailwind
colors: {
  custom: {
    50: '#46485a',
    500: '#00031f',
    950: '#000000',
  },
}
SCSS
$custom: #00031f;
$custom-light: #46485a;
$custom-dark: #000000;
JSON
{
  "hex": "#00031f",
  "rgb": {
    "r": 0,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 234.194,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.12297,
    "c": 0.06509,
    "h": 263.4
  },
  "luminance": 0.00164
}

Semantic roles & 50–950 ramp

primary
#00031F
secondary
#686012
accent
#EA29FF
background
#F3F4F5
surface
#E5E6E9
border
#C1C2C5
text
#000004
muted
#767779

Preview Lab

Preview with #00031F

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

Preview Lab → · Contrast checker → · Palette generator →

#00031F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva