#1F116D#1F116D

#1F116D is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.146 H 278.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#1F116D
RGBrgb(31, 17, 109)
HSLhsl(249, 73%, 25%)
HSVhsv(249, 84%, 43%)
CMYKcmyk(71.6%, 84.4%, 0%, 57.3%)
CIE-LABlab(14.38, 35.80, -50.05)
CIE-LCHlch(14.38, 61.54, 305.57°)
OKLaboklab(27.79% 0.0202 -0.1446)
OKLCHoklch(27.79% 0.146 278)
XYZxyz(3.5249, 1.7960, 14.6259)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F116D #5F6D11
analogous
#11316D #1F116D #4D116D
triadic
#1F116D #6D1F11 #116D1F
tetradic
#1F116D #6D1131 #5F6D11 #116D4D
square
#1F116D #6D1131 #5F6D11 #116D4D
split-complementary
#1F116D #6D4D11 #316D11
monochromatic
#08041A #100938 #1F116D #2E19A2 #3D22D7

Accessibility & contrast

On white

15.45
#1F116D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F116D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F116D
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F116D#FFFFFF#000000##FFFFFF
##1F116D1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f116d;
/* rgb */ color: rgb(31, 17, 109);
/* oklch */ color: oklch(27.8% 0.146 278.0);
Tailwind
colors: {
  custom: {
    50: '#685298',
    500: '#1f116d',
    950: '#000000',
  },
}
SCSS
$custom: #1f116d;
$custom-light: #685298;
$custom-dark: #000000;
JSON
{
  "hex": "#1f116d",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 109
  },
  "hsl": {
    "h": 249.13,
    "s": 73.016,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27788,
    "c": 0.146,
    "h": 278
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#1F116D
secondary
#94A535
accent
#F038D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F116D

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

Preview Lab → · Contrast checker → · Palette generator →

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