#1F1375#1F1375

#1F1375 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.154 H 276.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#1F1375
RGBrgb(31, 19, 117)
HSLhsl(247, 72%, 27%)
HSVhsv(247, 84%, 46%)
CMYKcmyk(73.5%, 83.8%, 0%, 54.1%)
CIE-LABlab(15.70, 37.39, -53.06)
CIE-LCHlch(15.70, 64.91, 305.17°)
OKLaboklab(28.99% 0.0169 -0.1534)
OKLCHoklch(28.99% 0.154 276.3)
XYZxyz(4.0078, 2.0410, 17.0089)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1375 #697513
analogous
#133875 #1F1375 #501375
triadic
#1F1375 #751F13 #13751F
tetradic
#1F1375 #751338 #697513 #137550
square
#1F1375 #751338 #697513 #137550
split-complementary
#1F1375 #755013 #387513
monochromatic
#07041A #110A40 #1F1375 #2D1CAA #3D27DC

Accessibility & contrast

On white

14.91
#1F1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1375
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1375#FFFFFF#000000##FFFFFF
##1F13751.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1375;
/* rgb */ color: rgb(31, 19, 117);
/* oklch */ color: oklch(29.0% 0.154 276.3);
Tailwind
colors: {
  custom: {
    50: '#6a549e',
    500: '#1f1375',
    950: '#000000',
  },
}
SCSS
$custom: #1f1375;
$custom-light: #6a549e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1375",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 247.347,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2899,
    "c": 0.15428,
    "h": 276.3
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#1F1375
secondary
#9DAB38
accent
#EF39D9
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #1F1375

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

Preview Lab → · Contrast checker → · Palette generator →

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