#1F1F76#1F1F76

#1F1F76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.143 H 274.1°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#1F1F76
RGBrgb(31, 31, 118)
HSLhsl(240, 58%, 29%)
HSVhsv(240, 74%, 46%)
CMYKcmyk(73.7%, 73.7%, 0%, 53.7%)
CIE-LABlab(18.27, 30.77, -49.46)
CIE-LCHlch(18.27, 58.25, 301.89°)
OKLaboklab(30.84% 0.0101 -0.143)
OKLCHoklch(30.84% 0.143 274.1)
XYZxyz(4.3240, 2.5789, 17.4059)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F76 #76761F
analogous
#1F4B76 #1F1F76 #4B1F76
triadic
#1F1F76 #761F1F #1F761F
tetradic
#1F1F76 #761F4B #76761F #1F764B
square
#1F1F76 #761F4B #76761F #1F764B
split-complementary
#1F1F76 #764B1F #4B761F
monochromatic
#060618 #121246 #1F1F76 #2C2CA6 #4242CD

Accessibility & contrast

On white

13.85
#1F1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F76
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F76#FFFFFF#000000##FFFFFF
##1F1F761.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1f76;
/* rgb */ color: rgb(31, 31, 118);
/* oklch */ color: oklch(30.8% 0.143 274.1);
Tailwind
colors: {
  custom: {
    50: '#695b9e',
    500: '#1f1f76',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f76;
$custom-light: #695b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f76",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30838,
    "c": 0.14335,
    "h": 274.1
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#1F1F76
secondary
#AAAA47
accent
#E246E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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