#1F167A#1F167A

#1F167A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.158 H 275.1°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#1F167A
RGBrgb(31, 22, 122)
HSLhsl(245, 69%, 28%)
HSVhsv(245, 82%, 48%)
CMYKcmyk(74.6%, 82%, 0%, 52.2%)
CIE-LABlab(16.84, 37.47, -54.38)
CIE-LCHlch(16.84, 66.04, 304.57°)
OKLaboklab(29.96% 0.0141 -0.1572)
OKLCHoklch(29.96% 0.158 275.1)
XYZxyz(4.3637, 2.2698, 18.6167)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F167A #717A16
analogous
#163F7A #1F167A #51167A
triadic
#1F167A #7A1F16 #167A1F
tetradic
#1F167A #7A163F #717A16 #167A51
square
#1F167A #7A163F #717A16 #167A51
split-complementary
#1F167A #7A5116 #3F7A16
monochromatic
#07051A #120D46 #1F167A #2C1FAE #4031DA

Accessibility & contrast

On white

14.44
#1F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F167A
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F167A#FFFFFF#000000##FFFFFF
##1F167A1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f167a;
/* rgb */ color: rgb(31, 22, 122);
/* oklch */ color: oklch(30.0% 0.158 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b56a2',
    500: '#1f167a',
    950: '#000000',
  },
}
SCSS
$custom: #1f167a;
$custom-light: #6b56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f167a",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 245.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29962,
    "c": 0.15787,
    "h": 275.1
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#1F167A
secondary
#A5AF3D
accent
#EC3CDC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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