#1F116E#1F116E

#1F116E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.147 H 277.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#1F116E
RGBrgb(31, 17, 110)
HSLhsl(249, 73%, 25%)
HSVhsv(249, 85%, 43%)
CMYKcmyk(71.8%, 84.5%, 0%, 56.9%)
CIE-LABlab(14.50, 36.13, -50.50)
CIE-LCHlch(14.50, 62.09, 305.58°)
OKLaboklab(27.91% 0.0199 -0.1459)
OKLCHoklch(27.91% 0.147 277.8)
XYZxyz(3.5791, 1.8177, 14.9111)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F116E #606E11
analogous
#11326E #1F116E #4D116E
triadic
#1F116E #6E1F11 #116E1F
tetradic
#1F116E #6E1132 #606E11 #116E4D
square
#1F116E #6E1132 #606E11 #116E4D
split-complementary
#1F116E #6E4D11 #326E11
monochromatic
#07041B #100939 #1F116E #2E19A3 #3D21D8

Accessibility & contrast

On white

15.40
#1F116E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F116E
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F116E#FFFFFF#000000##FFFFFF
##1F116E1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f116e;
/* rgb */ color: rgb(31, 17, 110);
/* oklch */ color: oklch(27.9% 0.147 277.8);
Tailwind
colors: {
  custom: {
    50: '#685299',
    500: '#1f116e',
    950: '#000000',
  },
}
SCSS
$custom: #1f116e;
$custom-light: #685299;
$custom-dark: #000000;
JSON
{
  "hex": "#1f116e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 110
  },
  "hsl": {
    "h": 249.032,
    "s": 73.228,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27908,
    "c": 0.14726,
    "h": 277.8
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F116E

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

Preview Lab → · Contrast checker → · Palette generator →

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