#03173A#03173A

#03173A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.073 H 259.6°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#03173A
RGBrgb(3, 23, 58)
HSLhsl(218, 90%, 12%)
HSVhsv(218, 95%, 23%)
CMYKcmyk(94.8%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.46, 7.92, -25.00)
CIE-LCHlch(8.46, 26.22, 287.58°)
OKLaboklab(21.35% -0.0133 -0.0721)
OKLCHoklch(21.35% 0.073 259.6)
XYZxyz(1.1074, 0.9375, 4.1248)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#03173A #3A2603
analogous
#03333A #03173A #0B033A
triadic
#03173A #3A0317 #173A03
tetradic
#03173A #3A0333 #3A2603 #033A0B
square
#03173A #3A0333 #3A2603 #033A0B
split-complementary
#03173A #3A0B03 #333A03
monochromatic
#020C1D #020C1D #03173A #062E74 #0945AE

Accessibility & contrast

On white

17.68
#03173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#03173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #03173A
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##03173A#FFFFFF#000000##FFFFFF
##03173A1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#001639
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #03173a;
/* rgb */ color: rgb(3, 23, 58);
/* oklch */ color: oklch(21.3% 0.073 259.6);
Tailwind
colors: {
  custom: {
    50: '#4e5370',
    500: '#03173a',
    950: '#000000',
  },
}
SCSS
$custom: #03173a;
$custom-light: #4e5370;
$custom-dark: #000000;
JSON
{
  "hex": "#03173a",
  "rgb": {
    "r": 3,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 218.182,
    "s": 90.164,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21345,
    "c": 0.07331,
    "h": 259.6
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#03173A
secondary
#7D5A1C
accent
#B129FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #03173A

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

Preview Lab → · Contrast checker → · Palette generator →

#03173A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva