#1F166B#1F166B

#1F166B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.139 H 277.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#1F166B
RGBrgb(31, 22, 107)
HSLhsl(246, 66%, 25%)
HSVhsv(246, 79%, 42%)
CMYKcmyk(71%, 79.4%, 0%, 58%)
CIE-LABlab(15.10, 32.39, -47.56)
CIE-LCHlch(15.10, 57.54, 304.26°)
OKLaboklab(28.22% 0.018 -0.1374)
OKLCHoklch(28.22% 0.139 277.5)
XYZxyz(3.5050, 1.9264, 14.0942)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166B #626B16
analogous
#16376B #1F166B #49166B
triadic
#1F166B #6B1F16 #166B1F
tetradic
#1F166B #6B1637 #626B16 #166B49
square
#1F166B #6B1637 #626B16 #166B49
split-complementary
#1F166B #6B4916 #376B16
monochromatic
#070519 #100C38 #1F166B #2E209E #3C2BD1

Accessibility & contrast

On white

15.16
#1F166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F166B
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166B#FFFFFF#000000##FFFFFF
##1F166B1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f166b;
/* rgb */ color: rgb(31, 22, 107);
/* oklch */ color: oklch(28.2% 0.139 277.5);
Tailwind
colors: {
  custom: {
    50: '#675596',
    500: '#1f166b',
    950: '#000000',
  },
}
SCSS
$custom: #1f166b;
$custom-light: #675596;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166b",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 246.353,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2822,
    "c": 0.13858,
    "h": 277.5
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#1F166B
secondary
#97A13B
accent
#E93FD7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F166B

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

Preview Lab → · Contrast checker → · Palette generator →

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