#1F0F76#1F0F76

#1F0F76 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.7% C 0.159 H 276.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#1F0F76
RGBrgb(31, 15, 118)
HSLhsl(249, 77%, 26%)
HSVhsv(249, 87%, 46%)
CMYKcmyk(73.7%, 87.3%, 0%, 53.7%)
CIE-LABlab(15.17, 39.62, -54.58)
CIE-LCHlch(15.17, 67.44, 305.98°)
OKLaboklab(28.66% 0.0182 -0.1577)
OKLCHoklch(28.66% 0.159 276.6)
XYZxyz(4.0048, 1.9406, 17.2995)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F76 #66760F
analogous
#0F3276 #1F0F76 #520F76
triadic
#1F0F76 #761F0F #0F761F
tetradic
#1F0F76 #760F32 #66760F #0F7652
square
#1F0F76 #760F32 #66760F #0F7652
split-complementary
#1F0F76 #76520F #32760F
monochromatic
#07031B #110840 #1F0F76 #2D16AC #3C1DE2

Accessibility & contrast

On white

15.13
#1F0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F76
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F76#FFFFFF#000000##FFFFFF
##1F0F761.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002274
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f0f76;
/* rgb */ color: rgb(31, 15, 118);
/* oklch */ color: oklch(28.7% 0.159 276.6);
Tailwind
colors: {
  custom: {
    50: '#6b529f',
    500: '#1f0f76',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f76;
$custom-light: #6b529f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f76",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 249.32,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28661,
    "c": 0.15874,
    "h": 276.6
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#1F0F76
secondary
#9AAD33
accent
#F434D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020F
muted
#7A787E

Preview Lab

Preview with #1F0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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