#1F1176#1F1176

#1F1176 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.9% C 0.157 H 276.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#1F1176
RGBrgb(31, 17, 118)
HSLhsl(248, 75%, 26%)
HSVhsv(248, 86%, 46%)
CMYKcmyk(73.7%, 85.6%, 0%, 53.7%)
CIE-LABlab(15.49, 38.70, -54.06)
CIE-LCHlch(15.49, 66.48, 305.60°)
OKLaboklab(28.88% 0.0174 -0.1562)
OKLCHoklch(28.88% 0.157 276.4)
XYZxyz(4.0345, 1.9998, 17.3094)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1176 #687611
analogous
#113676 #1F1176 #521176
triadic
#1F1176 #761F11 #11761F
tetradic
#1F1176 #761136 #687611 #117652
square
#1F1176 #761136 #687611 #117652
split-complementary
#1F1176 #765211 #367611
monochromatic
#07041B #110941 #1F1176 #2D19AB #3C22DF

Accessibility & contrast

On white

15.00
#1F1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F1176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1176
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1176#FFFFFF#000000##FFFFFF
##1F11761.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002274
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1176;
/* rgb */ color: rgb(31, 17, 118);
/* oklch */ color: oklch(28.9% 0.157 276.4);
Tailwind
colors: {
  custom: {
    50: '#6a539f',
    500: '#1f1176',
    950: '#000000',
  },
}
SCSS
$custom: #1f1176;
$custom-light: #6a539f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1176",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 248.317,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28877,
    "c": 0.15719,
    "h": 276.4
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#1F1176
secondary
#9CAD36
accent
#F136D8
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1176

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

Preview Lab → · Contrast checker → · Palette generator →

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