#1F1070#1F1070

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

Color values

HEX#1F1070
RGBrgb(31, 16, 112)
HSLhsl(249, 75%, 25%)
HSVhsv(249, 86%, 44%)
CMYKcmyk(72.3%, 85.7%, 0%, 56.1%)
CIE-LABlab(14.58, 37.26, -51.68)
CIE-LCHlch(14.58, 63.71, 305.79°)
OKLaboklab(28.03% 0.0197 -0.1493)
OKLCHoklch(28.03% 0.151 277.5)
XYZxyz(3.6740, 1.8314, 15.4860)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1070 #617010
analogous
#103170 #1F1070 #4F1070
triadic
#1F1070 #701F10 #10701F
tetradic
#1F1070 #701031 #617010 #10704F
square
#1F1070 #701031 #617010 #10704F
split-complementary
#1F1070 #704F10 #317010
monochromatic
#07041B #10083A #1F1070 #2E18A6 #3D1FDB

Accessibility & contrast

On white

15.37
#1F1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1070
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1070#FFFFFF#000000##FFFFFF
##1F10701.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00216E
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f1070;
/* rgb */ color: rgb(31, 16, 112);
/* oklch */ color: oklch(28.0% 0.151 277.5);
Tailwind
colors: {
  custom: {
    50: '#69529a',
    500: '#1f1070',
    950: '#000000',
  },
}
SCSS
$custom: #1f1070;
$custom-light: #69529a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1070",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 249.375,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.15061,
    "h": 277.5
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#1F1070
secondary
#96A834
accent
#F236D4
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1070

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

Preview Lab → · Contrast checker → · Palette generator →

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