#1F1475#1F1475

#1F1475 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.153 H 276.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#1F1475
RGBrgb(31, 20, 117)
HSLhsl(247, 71%, 27%)
HSVhsv(247, 83%, 46%)
CMYKcmyk(73.5%, 82.9%, 0%, 54.1%)
CIE-LABlab(15.88, 36.87, -52.76)
CIE-LCHlch(15.88, 64.37, 304.95°)
OKLaboklab(29.11% 0.0164 -0.1525)
OKLCHoklch(29.11% 0.153 276.1)
XYZxyz(4.0251, 2.0756, 17.0147)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1475 #6A7514
analogous
#143A75 #1F1475 #501475
triadic
#1F1475 #751F14 #14751F
tetradic
#1F1475 #75143A #6A7514 #147550
square
#1F1475 #75143A #6A7514 #147550
split-complementary
#1F1475 #755014 #3A7514
monochromatic
#07041A #110B41 #1F1475 #2D1DA9 #3D29DA

Accessibility & contrast

On white

14.84
#1F1475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F1475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1475
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1475#FFFFFF#000000##FFFFFF
##1F14751.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1475;
/* rgb */ color: rgb(31, 20, 117);
/* oklch */ color: oklch(29.1% 0.153 276.1);
Tailwind
colors: {
  custom: {
    50: '#6a549e',
    500: '#1f1475',
    950: '#000000',
  },
}
SCSS
$custom: #1f1475;
$custom-light: #6a549e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1475",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 246.804,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29114,
    "c": 0.1534,
    "h": 276.1
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#1F1475
secondary
#9EAB3A
accent
#EE3AD9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1475

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

Preview Lab → · Contrast checker → · Palette generator →

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