#1F116A#1F116A

#1F116A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.142 H 278.6°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#1F116A
RGBrgb(31, 17, 106)
HSLhsl(249, 72%, 24%)
HSVhsv(249, 84%, 42%)
CMYKcmyk(70.8%, 84%, 0%, 58.4%)
CIE-LABlab(14.02, 34.82, -48.69)
CIE-LCHlch(14.02, 59.86, 305.57°)
OKLaboklab(27.43% 0.0212 -0.1406)
OKLCHoklch(27.43% 0.142 278.6)
XYZxyz(3.3662, 1.7325, 13.7899)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F116A #5C6A11
analogous
#11306A #1F116A #4C116A
triadic
#1F116A #6A1F11 #116A1F
tetradic
#1F116A #6A1130 #5C6A11 #116A4C
square
#1F116A #6A1130 #5C6A11 #116A4C
split-complementary
#1F116A #6A4C11 #306A11
monochromatic
#08041A #100935 #1F116A #2E199F #3E22D3

Accessibility & contrast

On white

15.59
#1F116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F116A
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F116A#FFFFFF#000000##FFFFFF
##1F116A1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f116a;
/* rgb */ color: rgb(31, 17, 106);
/* oklch */ color: oklch(27.4% 0.142 278.6);
Tailwind
colors: {
  custom: {
    50: '#675296',
    500: '#1f116a',
    950: '#000000',
  },
}
SCSS
$custom: #1f116a;
$custom-light: #675296;
$custom-dark: #000000;
JSON
{
  "hex": "#1f116a",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 249.438,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2743,
    "c": 0.14221,
    "h": 278.6
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#1F116A
secondary
#91A235
accent
#EF39D2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F116A

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

Preview Lab → · Contrast checker → · Palette generator →

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