#1F167F#1F167F

#1F167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.164 H 274.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#1F167F
RGBrgb(31, 22, 127)
HSLhsl(245, 70%, 29%)
HSVhsv(245, 83%, 50%)
CMYKcmyk(75.6%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.45, 39.12, -56.57)
CIE-LCHlch(17.45, 68.78, 304.66°)
OKLaboklab(30.56% 0.0128 -0.1636)
OKLCHoklch(30.56% 0.164 274.5)
XYZxyz(4.6815, 2.3970, 20.2905)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F167F #767F16
analogous
#16427F #1F167F #54167F
triadic
#1F167F #7F1F16 #167F1F
tetradic
#1F167F #7F1642 #767F16 #167F54
square
#1F167F #7F1642 #767F16 #167F54
split-complementary
#1F167F #7F5416 #427F16
monochromatic
#06051A #120D4B #1F167F #2C1FB3 #4234DC

Accessibility & contrast

On white

14.19
#1F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F167F
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F167F#FFFFFF#000000##FFFFFF
##1F167F1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f167f;
/* rgb */ color: rgb(31, 22, 127);
/* oklch */ color: oklch(30.6% 0.164 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#1f167f',
    950: '#000000',
  },
}
SCSS
$custom: #1f167f;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f167f",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 245.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30557,
    "c": 0.16411,
    "h": 274.5
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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