#03173B#03173B

#03173B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.075 H 259.9°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#03173B
RGBrgb(3, 23, 59)
HSLhsl(219, 90%, 12%)
HSVhsv(219, 95%, 23%)
CMYKcmyk(94.9%, 61%, 0%, 76.9%)
CIE-LABlab(8.55, 8.41, -25.57)
CIE-LCHlch(8.55, 26.92, 288.20°)
OKLaboklab(21.44% -0.0131 -0.0738)
OKLCHoklch(21.44% 0.075 259.9)
XYZxyz(1.1331, 0.9478, 4.2600)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#03173B #3B2703
analogous
#03333B #03173B #0B033B
triadic
#03173B #3B0317 #173B03
tetradic
#03173B #3B0333 #3B2703 #033B0B
square
#03173B #3B0333 #3B2703 #033B0B
split-complementary
#03173B #3B0B03 #333B03
monochromatic
#010B1D #010B1D #03173B #062E75 #0944AF

Accessibility & contrast

On white

17.65
#03173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #03173B
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##03173B#FFFFFF#000000##FFFFFF
##03173B1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #03173b;
/* rgb */ color: rgb(3, 23, 59);
/* oklch */ color: oklch(21.4% 0.075 259.9);
Tailwind
colors: {
  custom: {
    50: '#4e5371',
    500: '#03173b',
    950: '#000000',
  },
}
SCSS
$custom: #03173b;
$custom-light: #4e5371;
$custom-dark: #000000;
JSON
{
  "hex": "#03173b",
  "rgb": {
    "r": 3,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 218.571,
    "s": 90.323,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21441,
    "c": 0.07495,
    "h": 259.9
  },
  "luminance": 0.00948
}

Semantic roles & 50–950 ramp

primary
#03173B
secondary
#7E5B1C
accent
#B229FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #03173B

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

Preview Lab → · Contrast checker → · Palette generator →

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