#1F1072#1F1072

#1F1072 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.153 H 277.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1F1072
RGBrgb(31, 16, 114)
HSLhsl(249, 75%, 25%)
HSVhsv(249, 86%, 45%)
CMYKcmyk(72.8%, 86%, 0%, 55.3%)
CIE-LABlab(14.82, 37.90, -52.57)
CIE-LCHlch(14.82, 64.81, 305.79°)
OKLaboklab(28.28% 0.0191 -0.1519)
OKLCHoklch(28.28% 0.153 277.2)
XYZxyz(3.7866, 1.8764, 16.0790)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1072 #637210
analogous
#103272 #1F1072 #501072
triadic
#1F1072 #721F10 #10721F
tetradic
#1F1072 #721032 #637210 #107250
square
#1F1072 #721032 #637210 #107250
split-complementary
#1F1072 #725010 #327210
monochromatic
#07041B #10083C #1F1072 #2E18A8 #3C1FDD

Accessibility & contrast

On white

15.27
#1F1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1072
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1072#FFFFFF#000000##FFFFFF
##1F10721.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.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: #1f1072;
/* rgb */ color: rgb(31, 16, 114);
/* oklch */ color: oklch(28.3% 0.153 277.2);
Tailwind
colors: {
  custom: {
    50: '#6a529c',
    500: '#1f1072',
    950: '#000000',
  },
}
SCSS
$custom: #1f1072;
$custom-light: #6a529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1072",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 249.184,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28276,
    "c": 0.15308,
    "h": 277.2
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#1F1072
secondary
#98A934
accent
#F236D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1072

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

Preview Lab → · Contrast checker → · Palette generator →

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