#1F166D#1F166D

#1F166D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.141 H 277.1°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1F166D
RGBrgb(31, 22, 109)
HSLhsl(246, 66%, 26%)
HSVhsv(246, 80%, 43%)
CMYKcmyk(71.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.32, 33.08, -48.49)
CIE-LCHlch(15.32, 58.70, 304.30°)
OKLaboklab(28.45% 0.0175 -0.1401)
OKLCHoklch(28.45% 0.141 277.1)
XYZxyz(3.6114, 1.9689, 14.6548)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166D #646D16
analogous
#16386D #1F166D #4A166D
triadic
#1F166D #6D1F16 #166D1F
tetradic
#1F166D #6D1638 #646D16 #166D4A
square
#1F166D #6D1638 #646D16 #166D4A
split-complementary
#1F166D #6D4A16 #386D16
monochromatic
#070519 #110C3A #1F166D #2D20A0 #3C2BD3

Accessibility & contrast

On white

15.07
#1F166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F166D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166D#FFFFFF#000000##FFFFFF
##1F166D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f166d;
/* rgb */ color: rgb(31, 22, 109);
/* oklch */ color: oklch(28.4% 0.141 277.1);
Tailwind
colors: {
  custom: {
    50: '#685598',
    500: '#1f166d',
    950: '#000000',
  },
}
SCSS
$custom: #1f166d;
$custom-light: #685598;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166d",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 246.207,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28448,
    "c": 0.1412,
    "h": 277.1
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#1F166D
secondary
#98A33C
accent
#E93ED8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F166D

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

Preview Lab → · Contrast checker → · Palette generator →

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