#1F117E#1F117E

#1F117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.167 H 275.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#1F117E
RGBrgb(31, 17, 126)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 87%, 49%)
CMYKcmyk(75.4%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.49, 41.22, -57.51)
CIE-LCHlch(16.49, 70.76, 305.63°)
OKLaboklab(29.86% 0.0149 -0.1662)
OKLCHoklch(29.86% 0.167 275.1)
XYZxyz(4.5302, 2.1981, 19.9202)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F117E #707E11
analogous
#113A7E #1F117E #55117E
triadic
#1F117E #7E1F11 #117E1F
tetradic
#1F117E #7E113A #707E11 #117E55
square
#1F117E #7E113A #707E11 #117E55
split-complementary
#1F117E #7E5511 #3A7E11
monochromatic
#07041B #120A48 #1F117E #2C18B4 #3F27E2

Accessibility & contrast

On white

14.59
#1F117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F117E
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F117E#FFFFFF#000000##FFFFFF
##1F117E1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f117e;
/* rgb */ color: rgb(31, 17, 126);
/* oklch */ color: oklch(29.9% 0.167 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1f117e',
    950: '#000000',
  },
}
SCSS
$custom: #1f117e;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f117e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 247.706,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29863,
    "c": 0.16691,
    "h": 275.1
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#1F117E
secondary
#A4B437
accent
#F335DA
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F117E

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

Preview Lab → · Contrast checker → · Palette generator →

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