#1F1470#1F1470

#1F1470 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.147 H 277.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#1F1470
RGBrgb(31, 20, 112)
HSLhsl(247, 70%, 26%)
HSVhsv(247, 82%, 44%)
CMYKcmyk(72.3%, 82.1%, 0%, 56.1%)
CIE-LABlab(15.28, 35.21, -50.51)
CIE-LCHlch(15.28, 61.57, 304.88°)
OKLaboklab(28.52% 0.0178 -0.146)
OKLCHoklch(28.52% 0.147 277)
XYZxyz(3.7389, 1.9611, 15.5076)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1470 #657014
analogous
#143770 #1F1470 #4D1470
triadic
#1F1470 #701F14 #14701F
tetradic
#1F1470 #701437 #657014 #14704D
square
#1F1470 #701437 #657014 #14704D
split-complementary
#1F1470 #704D14 #377014
monochromatic
#07051A #110B3C #1F1470 #2D1DA4 #3C27D8

Accessibility & contrast

On white

15.08
#1F1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1470
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1470#FFFFFF#000000##FFFFFF
##1F14701.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1470;
/* rgb */ color: rgb(31, 20, 112);
/* oklch */ color: oklch(28.5% 0.147 277.0);
Tailwind
colors: {
  custom: {
    50: '#69549a',
    500: '#1f1470',
    950: '#000000',
  },
}
SCSS
$custom: #1f1470;
$custom-light: #69549a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1470",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 247.174,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28522,
    "c": 0.14706,
    "h": 277
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#1F1470
secondary
#99A639
accent
#ED3BD7
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1470

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

Preview Lab → · Contrast checker → · Palette generator →

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