#03173F#03173F

#03173F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.081 H 261.1°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#03173F
RGBrgb(3, 23, 63)
HSLhsl(220, 91%, 13%)
HSVhsv(220, 95%, 25%)
CMYKcmyk(95.2%, 63.5%, 0%, 75.3%)
CIE-LABlab(8.92, 10.34, -27.83)
CIE-LCHlch(8.92, 29.69, 290.38°)
OKLaboklab(21.83% -0.0126 -0.0804)
OKLCHoklch(21.83% 0.081 261.1)
XYZxyz(1.2408, 0.9909, 4.8275)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#03173F #3F2B03
analogous
#03353F #03173F #0D033F
triadic
#03173F #3F0317 #173F03
tetradic
#03173F #3F0335 #3F2B03 #033F0D
square
#03173F #3F0335 #3F2B03 #033F0D
split-complementary
#03173F #3F0D03 #353F03
monochromatic
#010B1D #010B1D #03173F #062C79 #0942B4

Accessibility & contrast

On white

17.53
#03173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#03173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #03173F
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##03173F#FFFFFF#000000##FFFFFF
##03173F1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #03173f;
/* rgb */ color: rgb(3, 23, 63);
/* oklch */ color: oklch(21.8% 0.081 261.1);
Tailwind
colors: {
  custom: {
    50: '#505374',
    500: '#03173f',
    950: '#000000',
  },
}
SCSS
$custom: #03173f;
$custom-light: #505374;
$custom-dark: #000000;
JSON
{
  "hex": "#03173f",
  "rgb": {
    "r": 3,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 220,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21835,
    "c": 0.08142,
    "h": 261.1
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#03173F
secondary
#81601D
accent
#B829FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #03173F

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

Preview Lab → · Contrast checker → · Palette generator →

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