#1F1167#1F1167

#1F1167 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.138 H 279.2°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#1F1167
RGBrgb(31, 17, 103)
HSLhsl(250, 72%, 24%)
HSVhsv(250, 83%, 40%)
CMYKcmyk(69.9%, 83.5%, 0%, 59.6%)
CIE-LABlab(13.66, 33.83, -47.30)
CIE-LCHlch(13.66, 58.16, 305.57°)
OKLaboklab(27.08% 0.0221 -0.1366)
OKLCHoklch(27.08% 0.138 279.2)
XYZxyz(3.2129, 1.6712, 12.9826)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1167 #596711
analogous
#112E67 #1F1167 #4A1167
triadic
#1F1167 #671F11 #11671F
tetradic
#1F1167 #67112E #596711 #11674A
square
#1F1167 #67112E #596711 #11674A
split-complementary
#1F1167 #674A11 #2E6711
monochromatic
#08041A #0F0832 #1F1167 #2F1A9C #3F22D0

Accessibility & contrast

On white

15.74
#1F1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1167
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1167#FFFFFF#000000##FFFFFF
##1F11671.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002669
Deuteranopia (green-blind)
#001F65
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f1167;
/* rgb */ color: rgb(31, 17, 103);
/* oklch */ color: oklch(27.1% 0.138 279.2);
Tailwind
colors: {
  custom: {
    50: '#675293',
    500: '#1f1167',
    950: '#000000',
  },
}
SCSS
$custom: #1f1167;
$custom-light: #675293;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1167",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 249.767,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27075,
    "c": 0.13838,
    "h": 279.2
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#1F1167
secondary
#8E9F35
accent
#EE39D1
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1167

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

Preview Lab → · Contrast checker → · Palette generator →

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