#1F1E7D#1F1E7D

#1F1E7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.154 H 273.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1F1E7D
RGBrgb(31, 30, 125)
HSLhsl(241, 61%, 30%)
HSVhsv(241, 76%, 49%)
CMYKcmyk(75.2%, 76%, 0%, 51%)
CIE-LABlab(18.80, 33.91, -53.06)
CIE-LCHlch(18.80, 62.97, 302.58°)
OKLaboklab(31.44% 0.0095 -0.1535)
OKLCHoklch(31.44% 0.154 273.5)
XYZxyz(4.7298, 2.7000, 19.6700)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E7D #7C7D1E
analogous
#1E4C7D #1F1E7D #4F1E7D
triadic
#1F1E7D #7D1F1E #1E7D1F
tetradic
#1F1E7D #7D1E4C #7C7D1E #1E7D4F
square
#1F1E7D #7D1E4C #7C7D1E #1E7D4F
split-complementary
#1F1E7D #7D4F1E #4C7D1E
monochromatic
#07061A #13124C #1F1E7D #2B2AAE #4543D2

Accessibility & contrast

On white

13.63
#1F1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E7D
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E7D#FFFFFF#000000##FFFFFF
##1F1E7D1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1e7d;
/* rgb */ color: rgb(31, 30, 125);
/* oklch */ color: oklch(31.4% 0.154 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b5ba4',
    500: '#1f1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e7d;
$custom-light: #6b5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e7d",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 240.632,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31442,
    "c": 0.15378,
    "h": 273.5
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#1F1E7D
secondary
#AFB046
accent
#E443E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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