#1F0F70#1F0F70

#1F0F70 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.151 H 277.7°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#1F0F70
RGBrgb(31, 15, 112)
HSLhsl(250, 76%, 25%)
HSVhsv(250, 87%, 44%)
CMYKcmyk(72.3%, 86.6%, 0%, 56.1%)
CIE-LABlab(14.41, 37.74, -51.95)
CIE-LCHlch(14.41, 64.21, 306.00°)
OKLaboklab(27.92% 0.0202 -0.1501)
OKLCHoklch(27.92% 0.151 277.7)
XYZxyz(3.6596, 1.8025, 15.4811)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F70 #60700F
analogous
#0F2F70 #1F0F70 #500F70
triadic
#1F0F70 #701F0F #0F701F
tetradic
#1F0F70 #700F2F #60700F #0F7050
square
#1F0F70 #700F2F #60700F #0F7050
split-complementary
#1F0F70 #70500F #2F700F
monochromatic
#07041B #10083A #1F0F70 #2E16A6 #3D1DDC

Accessibility & contrast

On white

15.43
#1F0F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F0F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F70
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F70#FFFFFF#000000##FFFFFF
##1F0F701.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002873
Deuteranopia (green-blind)
#00206E
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f0f70;
/* rgb */ color: rgb(31, 15, 112);
/* oklch */ color: oklch(27.9% 0.151 277.7);
Tailwind
colors: {
  custom: {
    50: '#69519a',
    500: '#1f0f70',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f70;
$custom-light: #69519a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f70",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 112
  },
  "hsl": {
    "h": 249.897,
    "s": 76.378,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27921,
    "c": 0.15142,
    "h": 277.7
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#1F0F70
secondary
#95A833
accent
#F335D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F0F70

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

Preview Lab → · Contrast checker → · Palette generator →

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