#1F219D#1F219D

#1F219D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.191 H 270.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#1F219D
RGBrgb(31, 33, 157)
HSLhsl(239, 67%, 37%)
HSVhsv(239, 80%, 62%)
CMYKcmyk(80.3%, 79%, 0%, 38.4%)
CIE-LABlab(23.04, 43.21, -66.00)
CIE-LCHlch(23.04, 78.89, 303.21°)
OKLaboklab(35.51% 0.002 -0.1911)
OKLCHoklch(35.51% 0.191 270.6)
XYZxyz(7.1927, 3.8125, 32.2486)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F219D #9D9B1F
analogous
#1F609D #1F219D #5C1F9D
triadic
#1F219D #9D1F21 #219D1F
tetradic
#1F219D #9D1F60 #9D9B1F #1F9D5C
square
#1F219D #9D1F60 #9D9B1F #1F9D5C
split-complementary
#1F219D #9D5C1F #609D1F
monochromatic
#0B0C37 #15166A #1F219D #292CD0 #585ADE

Accessibility & contrast

On white

11.91
#1F219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F219D
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F219D#FFFFFF#000000##FFFFFF
##1F219D1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00309B
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f219d;
/* rgb */ color: rgb(31, 33, 157);
/* oklch */ color: oklch(35.5% 0.191 270.6);
Tailwind
colors: {
  custom: {
    50: '#735fbb',
    500: '#1f219d',
    950: '#000000',
  },
}
SCSS
$custom: #1f219d;
$custom-light: #735fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f219d",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 239.048,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3551,
    "c": 0.19114,
    "h": 270.6
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#1F219D
secondary
#C2C056
accent
#E73EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F219D

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

Preview Lab → · Contrast checker → · Palette generator →

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