#1F167D#1F167D

#1F167D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.162 H 274.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#1F167D
RGBrgb(31, 22, 125)
HSLhsl(245, 70%, 29%)
HSVhsv(245, 82%, 49%)
CMYKcmyk(75.2%, 82.4%, 0%, 51%)
CIE-LABlab(17.20, 38.46, -55.70)
CIE-LCHlch(17.20, 67.69, 304.63°)
OKLaboklab(30.32% 0.0133 -0.1611)
OKLCHoklch(30.32% 0.162 274.7)
XYZxyz(4.5524, 2.3453, 19.6108)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F167D #747D16
analogous
#16417D #1F167D #53167D
triadic
#1F167D #7D1F16 #167D1F
tetradic
#1F167D #7D1641 #747D16 #167D53
square
#1F167D #7D1641 #747D16 #167D53
split-complementary
#1F167D #7D5316 #417D16
monochromatic
#06051A #120D49 #1F167D #2C1FB1 #4132DB

Accessibility & contrast

On white

14.29
#1F167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F167D
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F167D#FFFFFF#000000##FFFFFF
##1F167D1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f167d;
/* rgb */ color: rgb(31, 22, 125);
/* oklch */ color: oklch(30.3% 0.162 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c56a4',
    500: '#1f167d',
    950: '#000000',
  },
}
SCSS
$custom: #1f167d;
$custom-light: #6c56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f167d",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 245.243,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30318,
    "c": 0.16163,
    "h": 274.7
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#1F167D
secondary
#A8B23D
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F167D

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

Preview Lab → · Contrast checker → · Palette generator →

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