#1F167B#1F167B

#1F167B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.159 H 275.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#1F167B
RGBrgb(31, 22, 123)
HSLhsl(245, 70%, 28%)
HSVhsv(245, 82%, 48%)
CMYKcmyk(74.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(16.96, 37.80, -54.82)
CIE-LCHlch(16.96, 66.59, 304.59°)
OKLaboklab(30.08% 0.0138 -0.1585)
OKLCHoklch(30.08% 0.159 275)
XYZxyz(4.4260, 2.2948, 18.9447)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F167B #727B16
analogous
#163F7B #1F167B #51167B
triadic
#1F167B #7B1F16 #167B1F
tetradic
#1F167B #7B163F #727B16 #167B51
square
#1F167B #7B163F #727B16 #167B51
split-complementary
#1F167B #7B5116 #3F7B16
monochromatic
#07051A #120D47 #1F167B #2C1FAF #4031DA

Accessibility & contrast

On white

14.39
#1F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F167B
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F167B#FFFFFF#000000##FFFFFF
##1F167B1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f167b;
/* rgb */ color: rgb(31, 22, 123);
/* oklch */ color: oklch(30.1% 0.159 275.0);
Tailwind
colors: {
  custom: {
    50: '#6b56a2',
    500: '#1f167b',
    950: '#000000',
  },
}
SCSS
$custom: #1f167b;
$custom-light: #6b56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f167b",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 245.347,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3008,
    "c": 0.15912,
    "h": 275
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#1F167B
secondary
#A6B03D
accent
#EC3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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