#1F166F#1F166F

#1F166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.144 H 276.8°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#1F166F
RGBrgb(31, 22, 111)
HSLhsl(246, 67%, 26%)
HSVhsv(246, 80%, 44%)
CMYKcmyk(72.1%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.55, 33.76, -49.41)
CIE-LCHlch(15.55, 59.85, 304.34°)
OKLaboklab(28.68% 0.017 -0.1428)
OKLCHoklch(28.68% 0.144 276.8)
XYZxyz(3.7203, 2.0125, 15.2282)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166F #666F16
analogous
#16396F #1F166F #4B166F
triadic
#1F166F #6F1F16 #166F1F
tetradic
#1F166F #6F1639 #666F16 #166F4B
square
#1F166F #6F1639 #666F16 #166F4B
split-complementary
#1F166F #6F4B16 #396F16
monochromatic
#07051A #110C3C #1F166F #2D20A2 #3C2BD5

Accessibility & contrast

On white

14.97
#1F166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F166F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166F#FFFFFF#000000##FFFFFF
##1F166F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f166f;
/* rgb */ color: rgb(31, 22, 111);
/* oklch */ color: oklch(28.7% 0.144 276.8);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#1f166f',
    950: '#000000',
  },
}
SCSS
$custom: #1f166f;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166f",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 246.067,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28677,
    "c": 0.14382,
    "h": 276.8
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#1F166F
secondary
#9AA53C
accent
#EA3ED8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F166F

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

Preview Lab → · Contrast checker → · Palette generator →

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