#1F116F#1F116F

#1F116F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.149 H 277.6°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#1F116F
RGBrgb(31, 17, 111)
HSLhsl(249, 73%, 25%)
HSVhsv(249, 85%, 44%)
CMYKcmyk(72.1%, 84.7%, 0%, 56.5%)
CIE-LABlab(14.62, 36.45, -50.95)
CIE-LCHlch(14.62, 62.65, 305.58°)
OKLaboklab(28.03% 0.0196 -0.1472)
OKLCHoklch(28.03% 0.149 277.6)
XYZxyz(3.6338, 1.8396, 15.1994)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F116F #616F11
analogous
#11326F #1F116F #4E116F
triadic
#1F116F #6F1F11 #116F1F
tetradic
#1F116F #6F1132 #616F11 #116F4E
square
#1F116F #6F1132 #616F11 #116F4E
split-complementary
#1F116F #6F4E11 #326F11
monochromatic
#07041B #10093A #1F116F #2E19A4 #3D21D9

Accessibility & contrast

On white

15.35
#1F116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F116F
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F116F#FFFFFF#000000##FFFFFF
##1F116F1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f116f;
/* rgb */ color: rgb(31, 17, 111);
/* oklch */ color: oklch(28.0% 0.149 277.6);
Tailwind
colors: {
  custom: {
    50: '#695299',
    500: '#1f116f',
    950: '#000000',
  },
}
SCSS
$custom: #1f116f;
$custom-light: #695299;
$custom-dark: #000000;
JSON
{
  "hex": "#1f116f",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 248.936,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28028,
    "c": 0.14851,
    "h": 277.6
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#1F116F
secondary
#96A635
accent
#F038D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F116F

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

Preview Lab → · Contrast checker → · Palette generator →

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