#1F1575#1F1575

#1F1575 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.152 H 276.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1F1575
RGBrgb(31, 21, 117)
HSLhsl(246, 70%, 27%)
HSVhsv(246, 82%, 46%)
CMYKcmyk(73.5%, 82.1%, 0%, 54.1%)
CIE-LABlab(16.06, 36.34, -52.46)
CIE-LCHlch(16.06, 63.82, 304.71°)
OKLaboklab(29.24% 0.0159 -0.1516)
OKLCHoklch(29.24% 0.152 276)
XYZxyz(4.0431, 2.1116, 17.0207)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1575 #6B7515
analogous
#153B75 #1F1575 #4F1575
triadic
#1F1575 #751F15 #15751F
tetradic
#1F1575 #75153B #6B7515 #15754F
square
#1F1575 #75153B #6B7515 #15754F
split-complementary
#1F1575 #754F15 #3B7515
monochromatic
#07051A #110C41 #1F1575 #2D1EA9 #3D2BD9

Accessibility & contrast

On white

14.76
#1F1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1575
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1575#FFFFFF#000000##FFFFFF
##1F15751.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1575;
/* rgb */ color: rgb(31, 21, 117);
/* oklch */ color: oklch(29.2% 0.152 276.0);
Tailwind
colors: {
  custom: {
    50: '#6a559e',
    500: '#1f1575',
    950: '#000000',
  },
}
SCSS
$custom: #1f1575;
$custom-light: #6a559e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1575",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 246.25,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29242,
    "c": 0.15248,
    "h": 276
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#1F1575
secondary
#9FAB3B
accent
#EC3BDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1575

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

Preview Lab → · Contrast checker → · Palette generator →

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