#1F166A#1F166A

#1F166A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.137 H 277.7°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#1F166A
RGBrgb(31, 22, 106)
HSLhsl(246, 66%, 25%)
HSVhsv(246, 79%, 42%)
CMYKcmyk(70.8%, 79.2%, 0%, 58.4%)
CIE-LABlab(14.98, 32.05, -47.09)
CIE-LCHlch(14.98, 56.96, 304.24°)
OKLaboklab(28.11% 0.0183 -0.136)
OKLCHoklch(28.11% 0.137 277.7)
XYZxyz(3.4527, 1.9054, 13.8187)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166A #616A16
analogous
#16376A #1F166A #49166A
triadic
#1F166A #6A1F16 #166A1F
tetradic
#1F166A #6A1637 #616A16 #166A49
square
#1F166A #6A1637 #616A16 #166A49
split-complementary
#1F166A #6A4916 #376A16
monochromatic
#070519 #100B37 #1F166A #2E219D #3D2BCF

Accessibility & contrast

On white

15.20
#1F166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F166A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166A#FFFFFF#000000##FFFFFF
##1F166A1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f166a;
/* rgb */ color: rgb(31, 22, 106);
/* oklch */ color: oklch(28.1% 0.137 277.7);
Tailwind
colors: {
  custom: {
    50: '#675596',
    500: '#1f166a',
    950: '#000000',
  },
}
SCSS
$custom: #1f166a;
$custom-light: #675596;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166a",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 246.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28107,
    "c": 0.13725,
    "h": 277.7
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#1F166A
secondary
#96A03B
accent
#E93FD6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F166A

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

Preview Lab → · Contrast checker → · Palette generator →

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