#1F166C#1F166C

#1F166C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.140 H 277.3°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#1F166C
RGBrgb(31, 22, 108)
HSLhsl(246, 66%, 25%)
HSVhsv(246, 80%, 42%)
CMYKcmyk(71.3%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.21, 32.74, -48.02)
CIE-LCHlch(15.21, 58.12, 304.28°)
OKLaboklab(28.33% 0.0178 -0.1388)
OKLCHoklch(28.33% 0.14 277.3)
XYZxyz(3.5579, 1.9475, 14.3729)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F166C #636C16
analogous
#16386C #1F166C #4A166C
triadic
#1F166C #6C1F16 #166C1F
tetradic
#1F166C #6C1638 #636C16 #166C4A
square
#1F166C #6C1638 #636C16 #166C4A
split-complementary
#1F166C #6C4A16 #386C16
monochromatic
#070519 #100C39 #1F166C #2E209F #3C2BD2

Accessibility & contrast

On white

15.11
#1F166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F166C
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F166C#FFFFFF#000000##FFFFFF
##1F166C1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f166c;
/* rgb */ color: rgb(31, 22, 108);
/* oklch */ color: oklch(28.3% 0.140 277.3);
Tailwind
colors: {
  custom: {
    50: '#675597',
    500: '#1f166c',
    950: '#000000',
  },
}
SCSS
$custom: #1f166c;
$custom-light: #675597;
$custom-dark: #000000;
JSON
{
  "hex": "#1f166c",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 246.279,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28334,
    "c": 0.1399,
    "h": 277.3
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#1F166C
secondary
#98A23C
accent
#E93FD7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F166C

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

Preview Lab → · Contrast checker → · Palette generator →

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