#031A3F#031A3F

#031A3F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.077 H 258.8°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#031A3F
RGBrgb(3, 26, 63)
HSLhsl(217, 91%, 13%)
HSVhsv(217, 95%, 25%)
CMYKcmyk(95.2%, 58.7%, 0%, 75.3%)
CIE-LABlab(9.93, 7.93, -26.18)
CIE-LCHlch(9.93, 27.36, 286.84°)
OKLaboklab(22.61% -0.0149 -0.0755)
OKLCHoklch(22.61% 0.077 258.8)
XYZxyz(1.3038, 1.1169, 4.8485)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031A3F #3F2803
analogous
#03383F #031A3F #0A033F
triadic
#031A3F #3F031A #1A3F03
tetradic
#031A3F #3F0338 #3F2803 #033F0A
square
#031A3F #3F0338 #3F2803 #033F0A
split-complementary
#031A3F #3F0A03 #383F03
monochromatic
#010C1D #010C1D #031A3F #063279 #094AB4

Accessibility & contrast

On white

17.17
#031A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#031A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031A3F
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031A3F#FFFFFF#000000##FFFFFF
##031A3F1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031a3f;
/* rgb */ color: rgb(3, 26, 63);
/* oklch */ color: oklch(22.6% 0.077 258.8);
Tailwind
colors: {
  custom: {
    50: '#505574',
    500: '#031a3f',
    950: '#000000',
  },
}
SCSS
$custom: #031a3f;
$custom-light: #505574;
$custom-dark: #000000;
JSON
{
  "hex": "#031a3f",
  "rgb": {
    "r": 3,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 217,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22607,
    "c": 0.07697,
    "h": 258.8
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#031A3F
secondary
#815B1D
accent
#AD29FF
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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