#1F0F72#1F0F72

#1F0F72 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.2% C 0.154 H 277.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#1F0F72
RGBrgb(31, 15, 114)
HSLhsl(250, 77%, 25%)
HSVhsv(250, 87%, 45%)
CMYKcmyk(72.8%, 86.8%, 0%, 55.3%)
CIE-LABlab(14.67, 38.37, -52.83)
CIE-LCHlch(14.67, 65.30, 305.99°)
OKLaboklab(28.17% 0.0195 -0.1526)
OKLCHoklch(28.17% 0.154 277.3)
XYZxyz(3.7722, 1.8475, 16.0741)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F72 #62720F
analogous
#0F3072 #1F0F72 #500F72
triadic
#1F0F72 #721F0F #0F721F
tetradic
#1F0F72 #720F30 #62720F #0F7250
square
#1F0F72 #720F30 #62720F #0F7250
split-complementary
#1F0F72 #72500F #30720F
monochromatic
#07041B #10083C #1F0F72 #2E16A8 #3C1DDE

Accessibility & contrast

On white

15.33
#1F0F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F0F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F72
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F72#FFFFFF#000000##FFFFFF
##1F0F721.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f0f72;
/* rgb */ color: rgb(31, 15, 114);
/* oklch */ color: oklch(28.2% 0.154 277.3);
Tailwind
colors: {
  custom: {
    50: '#6a529c',
    500: '#1f0f72',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f72;
$custom-light: #6a529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f72",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 249.697,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28167,
    "c": 0.15387,
    "h": 277.3
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#1F0F72
secondary
#97AA33
accent
#F335D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F0F72

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

Preview Lab → · Contrast checker → · Palette generator →

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