#031A40#031A40

#031A40 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.079 H 259.2°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#031A40
RGBrgb(3, 26, 64)
HSLhsl(217, 91%, 13%)
HSVhsv(217, 95%, 25%)
CMYKcmyk(95.3%, 59.4%, 0%, 74.9%)
CIE-LABlab(10.02, 8.41, -26.75)
CIE-LCHlch(10.02, 28.04, 287.45°)
OKLaboklab(22.7% -0.0148 -0.0772)
OKLCHoklch(22.7% 0.079 259.2)
XYZxyz(1.3320, 1.1281, 4.9970)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031A40 #402903
analogous
#033840 #031A40 #0A0340
triadic
#031A40 #40031A #1A4003
tetradic
#031A40 #400338 #402903 #03400A
square
#031A40 #400338 #402903 #03400A
split-complementary
#031A40 #400A03 #384003
monochromatic
#010C1D #010C1D #031A40 #06327A #0849B5

Accessibility & contrast

On white

17.13
#031A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#031A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031A40
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031A40#FFFFFF#000000##FFFFFF
##031A401.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #031a40;
/* rgb */ color: rgb(3, 26, 64);
/* oklch */ color: oklch(22.7% 0.079 259.2);
Tailwind
colors: {
  custom: {
    50: '#505575',
    500: '#031a40',
    950: '#000000',
  },
}
SCSS
$custom: #031a40;
$custom-light: #505575;
$custom-dark: #000000;
JSON
{
  "hex": "#031a40",
  "rgb": {
    "r": 3,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 217.377,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22701,
    "c": 0.07858,
    "h": 259.2
  },
  "luminance": 0.01128
}

Semantic roles & 50–950 ramp

primary
#031A40
secondary
#825C1D
accent
#AE29FF
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #031A40

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

Preview Lab → · Contrast checker → · Palette generator →

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