#1F1D7D#1F1D7D

#1F1D7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.155 H 273.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1F1D7D
RGBrgb(31, 29, 125)
HSLhsl(241, 62%, 30%)
HSVhsv(241, 77%, 49%)
CMYKcmyk(75.2%, 76.8%, 0%, 51%)
CIE-LABlab(18.58, 34.51, -53.42)
CIE-LCHlch(18.58, 63.60, 302.87°)
OKLaboklab(31.29% 0.01 -0.1545)
OKLCHoklch(31.29% 0.155 273.7)
XYZxyz(4.7049, 2.6502, 19.6617)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D7D #7B7D1D
analogous
#1D4B7D #1F1D7D #4F1D7D
triadic
#1F1D7D #7D1F1D #1D7D1F
tetradic
#1F1D7D #7D1D4B #7B7D1D #1D7D4F
square
#1F1D7D #7D1D4B #7B7D1D #1D7D4F
split-complementary
#1F1D7D #7D4F1D #4B7D1D
monochromatic
#06061A #13114B #1F1D7D #2B29AF #4441D3

Accessibility & contrast

On white

13.72
#1F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D7D
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D7D#FFFFFF#000000##FFFFFF
##1F1D7D1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1d7d;
/* rgb */ color: rgb(31, 29, 125);
/* oklch */ color: oklch(31.3% 0.155 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b5aa4',
    500: '#1f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d7d;
$custom-light: #6b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d7d",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 241.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31289,
    "c": 0.15484,
    "h": 273.7
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#1F1D7D
secondary
#AEB145
accent
#E542E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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