#1F1574#1F1574

#1F1574 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.151 H 276.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#1F1574
RGBrgb(31, 21, 116)
HSLhsl(246, 69%, 27%)
HSVhsv(246, 82%, 45%)
CMYKcmyk(73.3%, 81.9%, 0%, 54.5%)
CIE-LABlab(15.94, 36.01, -52.01)
CIE-LCHlch(15.94, 63.26, 304.70°)
OKLaboklab(29.12% 0.0162 -0.1503)
OKLCHoklch(29.12% 0.151 276.2)
XYZxyz(3.9846, 2.0882, 16.7127)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1574 #6A7415
analogous
#153B74 #1F1574 #4F1574
triadic
#1F1574 #741F15 #15741F
tetradic
#1F1574 #74153B #6A7415 #15744F
square
#1F1574 #74153B #6A7415 #15744F
split-complementary
#1F1574 #744F15 #3B7415
monochromatic
#07051A #110C40 #1F1574 #2D1EA8 #3D2BD9

Accessibility & contrast

On white

14.81
#1F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1574
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1574#FFFFFF#000000##FFFFFF
##1F15741.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1574;
/* rgb */ color: rgb(31, 21, 116);
/* oklch */ color: oklch(29.1% 0.151 276.2);
Tailwind
colors: {
  custom: {
    50: '#6a559d',
    500: '#1f1574',
    950: '#000000',
  },
}
SCSS
$custom: #1f1574;
$custom-light: #6a559d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1574",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 246.316,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.15121,
    "h": 276.2
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#1F1574
secondary
#9EAA3B
accent
#EC3CDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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