#031A3B#031A3B

#031A3B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.2% C 0.070 H 257.2°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#031A3B
RGBrgb(3, 26, 59)
HSLhsl(215, 90%, 12%)
HSVhsv(215, 95%, 23%)
CMYKcmyk(94.9%, 55.9%, 0%, 76.9%)
CIE-LABlab(9.59, 5.99, -23.88)
CIE-LCHlch(9.59, 24.62, 284.08°)
OKLaboklab(22.24% -0.0156 -0.0687)
OKLCHoklch(22.24% 0.071 257.2)
XYZxyz(1.1961, 1.0738, 4.2810)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031A3B #3B2403
analogous
#03363B #031A3B #08033B
triadic
#031A3B #3B031A #1A3B03
tetradic
#031A3B #3B0336 #3B2403 #033B08
square
#031A3B #3B0336 #3B2403 #033B08
split-complementary
#031A3B #3B0803 #363B03
monochromatic
#010D1D #010D1D #031A3B #063475 #094DAF

Accessibility & contrast

On white

17.29
#031A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#031A3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031A3B
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031A3B#FFFFFF#000000##FFFFFF
##031A3B1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071D3C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#002227
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031a3b;
/* rgb */ color: rgb(3, 26, 59);
/* oklch */ color: oklch(22.2% 0.070 257.2);
Tailwind
colors: {
  custom: {
    50: '#4e5571',
    500: '#031a3b',
    950: '#000000',
  },
}
SCSS
$custom: #031a3b;
$custom-light: #4e5571;
$custom-dark: #000000;
JSON
{
  "hex": "#031a3b",
  "rgb": {
    "r": 3,
    "g": 26,
    "b": 59
  },
  "hsl": {
    "h": 215.357,
    "s": 90.323,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2224,
    "c": 0.0705,
    "h": 257.2
  },
  "luminance": 0.01074
}

Semantic roles & 50–950 ramp

primary
#031A3B
secondary
#7E561C
accent
#A729FF
background
#F4F4F6
surface
#E7E8EC
border
#C3C4C7
text
#020307
muted
#78787A

Preview Lab

Preview with #031A3B

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

Preview Lab → · Contrast checker → · Palette generator →

#031A3B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva