#031740#031740

#031740 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.083 H 261.3°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#031740
RGBrgb(3, 23, 64)
HSLhsl(220, 91%, 13%)
HSVhsv(220, 95%, 25%)
CMYKcmyk(95.3%, 64.1%, 0%, 74.9%)
CIE-LABlab(9.01, 10.82, -28.38)
CIE-LCHlch(9.01, 30.38, 290.86°)
OKLaboklab(21.94% -0.0125 -0.0821)
OKLCHoklch(21.94% 0.083 261.3)
XYZxyz(1.2690, 1.0022, 4.9760)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031740 #402C03
analogous
#033540 #031740 #0D0340
triadic
#031740 #400317 #174003
tetradic
#031740 #400335 #402C03 #03400D
square
#031740 #400335 #402C03 #03400D
split-complementary
#031740 #400D03 #354003
monochromatic
#010B1D #010B1D #031740 #062C7A #0841B5

Accessibility & contrast

On white

17.49
#031740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#031740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031740
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031740#FFFFFF#000000##FFFFFF
##0317401.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031740;
/* rgb */ color: rgb(3, 23, 64);
/* oklch */ color: oklch(21.9% 0.083 261.3);
Tailwind
colors: {
  custom: {
    50: '#505375',
    500: '#031740',
    950: '#000000',
  },
}
SCSS
$custom: #031740;
$custom-light: #505375;
$custom-dark: #000000;
JSON
{
  "hex": "#031740",
  "rgb": {
    "r": 3,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 220.328,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21936,
    "c": 0.08301,
    "h": 261.3
  },
  "luminance": 0.01002
}

Semantic roles & 50–950 ramp

primary
#031740
secondary
#82611D
accent
#B929FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #031740

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

Preview Lab → · Contrast checker → · Palette generator →

#031740 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva