#1F176B#1F176B

#1F176B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.138 H 277.3°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1F176B
RGBrgb(31, 23, 107)
HSLhsl(246, 65%, 25%)
HSVhsv(246, 79%, 42%)
CMYKcmyk(71%, 78.5%, 0%, 58%)
CIE-LABlab(15.30, 31.80, -47.21)
CIE-LCHlch(15.30, 56.93, 303.96°)
OKLaboklab(28.37% 0.0174 -0.1364)
OKLCHoklch(28.37% 0.138 277.3)
XYZxyz(3.5245, 1.9653, 14.1007)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F176B #636B17
analogous
#17396B #1F176B #49176B
triadic
#1F176B #6B1F17 #176B1F
tetradic
#1F176B #6B1739 #636B17 #176B49
square
#1F176B #6B1739 #636B17 #176B49
split-complementary
#1F176B #6B4917 #396B17
monochromatic
#070519 #100C39 #1F176B #2E229D #3C2DD0

Accessibility & contrast

On white

15.07
#1F176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F176B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F176B#FFFFFF#000000##FFFFFF
##1F176B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f176b;
/* rgb */ color: rgb(31, 23, 107);
/* oklch */ color: oklch(28.4% 0.138 277.3);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#1f176b',
    950: '#000000',
  },
}
SCSS
$custom: #1f176b;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#1f176b",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 245.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28367,
    "c": 0.13752,
    "h": 277.3
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#1F176B
secondary
#98A13D
accent
#E840D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F176B

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

Preview Lab → · Contrast checker → · Palette generator →

#1F176B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva