#01031F#01031F

#01031F is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.5% C 0.064 H 266.9°. Best body text is #FFFFFF at 20.31:1 contrast (WCAG AA passes).

Color values

HEX#01031F
RGBrgb(1, 3, 31)
HSLhsl(236, 94%, 6%)
HSVhsv(236, 97%, 12%)
CMYKcmyk(96.8%, 90.3%, 0%, 87.8%)
CIE-LABlab(1.54, 5.34, -15.63)
CIE-LCHlch(1.54, 16.51, 288.85°)
OKLaboklab(12.48% -0.0034 -0.0637)
OKLCHoklch(12.48% 0.064 266.9)
XYZxyz(0.2923, 0.1705, 1.3136)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#01031F #1F1D01
analogous
#01121F #01031F #0E011F
triadic
#01031F #1F0103 #031F01
tetradic
#01031F #1F0112 #1F1D01 #011F0E
square
#01031F #1F0112 #1F1D01 #011F0E
split-complementary
#01031F #1F0E01 #121F01
monochromatic
#01031E #01031E #01031F #03095A #050E96

Accessibility & contrast

On white

20.31
#01031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #01031F
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##01031F#FFFFFF#000000##FFFFFF
##01031F1.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #01031f;
/* rgb */ color: rgb(1, 3, 31);
/* oklch */ color: oklch(12.5% 0.064 266.9);
Tailwind
colors: {
  custom: {
    50: '#46485a',
    500: '#01031f',
    950: '#000000',
  },
}
SCSS
$custom: #01031f;
$custom-light: #46485a;
$custom-dark: #000000;
JSON
{
  "hex": "#01031f",
  "rgb": {
    "r": 1,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 236,
    "s": 93.75,
    "l": 6.275
  },
  "oklch": {
    "l": 0.12475,
    "c": 0.06381,
    "h": 266.9
  },
  "luminance": 0.00171
}

Semantic roles & 50–950 ramp

primary
#01031F
secondary
#676115
accent
#F129FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #01031F

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

Preview Lab → · Contrast checker → · Palette generator →

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