#1F22B0#1F22B0

#1F22B0 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.213 H 269.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#1F22B0
RGBrgb(31, 34, 176)
HSLhsl(239, 70%, 41%)
HSVhsv(239, 82%, 69%)
CMYKcmyk(82.4%, 80.7%, 0%, 31%)
CIE-LABlab(25.47, 48.90, -73.48)
CIE-LCHlch(25.47, 88.27, 303.64°)
OKLaboklab(37.86% -0.0019 -0.2128)
OKLCHoklch(37.86% 0.213 269.5)
XYZxyz(8.9709, 4.5689, 41.4750)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F22B0 #B0AD1F
analogous
#1F6AB0 #1F22B0 #651FB0
triadic
#1F22B0 #B01F22 #22B01F
tetradic
#1F22B0 #B01F6A #B0AD1F #1FB065
square
#1F22B0 #B01F6A #B0AD1F #1FB065
split-complementary
#1F22B0 #B0651F #6AB01F
monochromatic
#0D0E48 #16187C #1F22B0 #3135DB #6568E4

Accessibility & contrast

On white

10.97
#1F22B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F22B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F22B0
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F22B0#FFFFFF#000000##FFFFFF
##1F22B01.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0035AE
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f22b0;
/* rgb */ color: rgb(31, 34, 176);
/* oklch */ color: oklch(37.9% 0.213 269.5);
Tailwind
colors: {
  custom: {
    50: '#7860c9',
    500: '#1f22b0',
    950: '#000000',
  },
}
SCSS
$custom: #1f22b0;
$custom-light: #7860c9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f22b0",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 176
  },
  "hsl": {
    "h": 238.759,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3786,
    "c": 0.21281,
    "h": 269.5
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#1F22B0
secondary
#C9C762
accent
#E93BED
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F22B0

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

Preview Lab → · Contrast checker → · Palette generator →

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