#1F167E#1F167E

#1F167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.163 H 274.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1F167E
RGBrgb(31, 22, 126)
HSLhsl(245, 70%, 29%)
HSVhsv(245, 83%, 49%)
CMYKcmyk(75.4%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.32, 38.79, -56.14)
CIE-LCHlch(17.32, 68.23, 304.64°)
OKLaboklab(30.44% 0.013 -0.1623)
OKLCHoklch(30.44% 0.163 274.6)
XYZxyz(4.6166, 2.3710, 19.9490)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F167E #757E16
analogous
#16417E #1F167E #53167E
triadic
#1F167E #7E1F16 #167E1F
tetradic
#1F167E #7E1641 #757E16 #167E53
square
#1F167E #7E1641 #757E16 #167E53
split-complementary
#1F167E #7E5316 #417E16
monochromatic
#06051A #120D4A #1F167E #2C1FB2 #4233DB

Accessibility & contrast

On white

14.25
#1F167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F167E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F167E#FFFFFF#000000##FFFFFF
##1F167E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f167e;
/* rgb */ color: rgb(31, 22, 126);
/* oklch */ color: oklch(30.4% 0.163 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#1f167e',
    950: '#000000',
  },
}
SCSS
$custom: #1f167e;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f167e",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 245.192,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30437,
    "c": 0.16287,
    "h": 274.6
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#1F167E
secondary
#A9B33D
accent
#ED3BDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F167E

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

Preview Lab → · Contrast checker → · Palette generator →

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