#1F116C#1F116C

#1F116C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.145 H 278.2°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#1F116C
RGBrgb(31, 17, 108)
HSLhsl(249, 73%, 25%)
HSVhsv(249, 84%, 42%)
CMYKcmyk(71.3%, 84.3%, 0%, 57.6%)
CIE-LABlab(14.26, 35.47, -49.60)
CIE-LCHlch(14.26, 60.98, 305.57°)
OKLaboklab(27.67% 0.0206 -0.1433)
OKLCHoklch(27.67% 0.145 278.2)
XYZxyz(3.4714, 1.7746, 14.3440)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F116C #5E6C11
analogous
#11316C #1F116C #4D116C
triadic
#1F116C #6C1F11 #116C1F
tetradic
#1F116C #6C1131 #5E6C11 #116C4D
square
#1F116C #6C1131 #5E6C11 #116C4D
split-complementary
#1F116C #6C4D11 #316C11
monochromatic
#08041A #100937 #1F116C #2E19A1 #3D22D6

Accessibility & contrast

On white

15.50
#1F116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F116C
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F116C#FFFFFF#000000##FFFFFF
##1F116C1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f116c;
/* rgb */ color: rgb(31, 17, 108);
/* oklch */ color: oklch(27.7% 0.145 278.2);
Tailwind
colors: {
  custom: {
    50: '#685297',
    500: '#1f116c',
    950: '#000000',
  },
}
SCSS
$custom: #1f116c;
$custom-light: #685297;
$custom-dark: #000000;
JSON
{
  "hex": "#1f116c",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 249.231,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27668,
    "c": 0.14475,
    "h": 278.2
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#1F116C
secondary
#93A435
accent
#EF38D3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F116C

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

Preview Lab → · Contrast checker → · Palette generator →

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