#1F1D72#1F1D72

#1F1D72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.140 H 275.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#1F1D72
RGBrgb(31, 29, 114)
HSLhsl(241, 59%, 28%)
HSVhsv(241, 75%, 45%)
CMYKcmyk(72.8%, 74.6%, 0%, 55.3%)
CIE-LABlab(17.39, 30.59, -48.33)
CIE-LCHlch(17.39, 57.20, 302.33°)
OKLaboklab(30.08% 0.0121 -0.1397)
OKLCHoklch(30.08% 0.14 275)
XYZxyz(4.0407, 2.3846, 16.1636)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D72 #70721D
analogous
#1D4572 #1F1D72 #491D72
triadic
#1F1D72 #721F1D #1D721F
tetradic
#1F1D72 #721D45 #70721D #1D7249
square
#1F1D72 #721D45 #70721D #1D7249
split-complementary
#1F1D72 #72491D #45721D
monochromatic
#070618 #121141 #1F1D72 #2C29A3 #3F3CCD

Accessibility & contrast

On white

14.22
#1F1D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F1D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D72
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D72#FFFFFF#000000##FFFFFF
##1F1D721.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f1d72;
/* rgb */ color: rgb(31, 29, 114);
/* oklch */ color: oklch(30.1% 0.140 275.0);
Tailwind
colors: {
  custom: {
    50: '#685a9b',
    500: '#1f1d72',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d72;
$custom-light: #685a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d72",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 241.412,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30078,
    "c": 0.14022,
    "h": 275
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#1F1D72
secondary
#A4A645
accent
#E345DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F1D72

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

Preview Lab → · Contrast checker → · Palette generator →

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