#1F219F#1F219F

#1F219F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.194 H 270.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F219F
RGBrgb(31, 33, 159)
HSLhsl(239, 67%, 37%)
HSVhsv(239, 81%, 62%)
CMYKcmyk(80.5%, 79.2%, 0%, 37.6%)
CIE-LABlab(23.28, 43.87, -66.84)
CIE-LCHlch(23.28, 79.95, 303.28°)
OKLaboklab(35.74% 0.0016 -0.1935)
OKLCHoklch(35.74% 0.194 270.5)
XYZxyz(7.3648, 3.8814, 33.1552)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F219F #9F9D1F
analogous
#1F619F #1F219F #5D1F9F
triadic
#1F219F #9F1F21 #219F1F
tetradic
#1F219F #9F1F61 #9F9D1F #1F9F5D
square
#1F219F #9F1F61 #9F9D1F #1F9F5D
split-complementary
#1F219F #9F5D1F #619F1F
monochromatic
#0B0C39 #15166C #1F219F #292CD2 #5A5CDF

Accessibility & contrast

On white

11.82
#1F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F219F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F219F#FFFFFF#000000##FFFFFF
##1F219F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f219f;
/* rgb */ color: rgb(31, 33, 159);
/* oklch */ color: oklch(35.7% 0.194 270.5);
Tailwind
colors: {
  custom: {
    50: '#745fbd',
    500: '#1f219f',
    950: '#000000',
  },
}
SCSS
$custom: #1f219f;
$custom-light: #745fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f219f",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 239.063,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.19356,
    "h": 270.5
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#1F219F
secondary
#C3C157
accent
#E83EEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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