#1F166E#1F166E

#1F166E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.143 H 277.0°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#1F166E
RGBrgb(31, 22, 110)
HSLhsl(246, 67%, 26%)
HSVhsv(246, 80%, 43%)
CMYKcmyk(71.8%, 80%, 0%, 56.9%)
CIE-LABlab(15.44, 33.42, -48.95)
CIE-LCHlch(15.44, 59.27, 304.32°)
OKLaboklab(28.56% 0.0173 -0.1415)
OKLCHoklch(28.56% 0.143 277)
XYZxyz(3.6655, 1.9906, 14.9399)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166E #656E16
analogous
#16396E #1F166E #4B166E
triadic
#1F166E #6E1F16 #166E1F
tetradic
#1F166E #6E1639 #656E16 #166E4B
square
#1F166E #6E1639 #656E16 #166E4B
split-complementary
#1F166E #6E4B16 #396E16
monochromatic
#07051A #110C3B #1F166E #2D20A1 #3C2AD4

Accessibility & contrast

On white

15.02
#1F166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F166E
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166E#FFFFFF#000000##FFFFFF
##1F166E1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A71
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f166e;
/* rgb */ color: rgb(31, 22, 110);
/* oklch */ color: oklch(28.6% 0.143 277.0);
Tailwind
colors: {
  custom: {
    50: '#685599',
    500: '#1f166e',
    950: '#000000',
  },
}
SCSS
$custom: #1f166e;
$custom-light: #685599;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166e",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 246.136,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28562,
    "c": 0.14251,
    "h": 277
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#1F166E
secondary
#99A43C
accent
#EA3ED8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F166E

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

Preview Lab → · Contrast checker → · Palette generator →

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