#1F22A6#1F22A6

#1F22A6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.7% C 0.201 H 270.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1F22A6
RGBrgb(31, 34, 166)
HSLhsl(239, 69%, 39%)
HSVhsv(239, 81%, 65%)
CMYKcmyk(81.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(24.28, 45.65, -69.42)
CIE-LCHlch(24.28, 83.09, 303.33°)
OKLaboklab(36.69% 0 -0.2011)
OKLCHoklch(36.69% 0.201 270)
XYZxyz(8.0177, 4.1876, 36.4547)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F22A6 #A6A31F
analogous
#1F65A6 #1F22A6 #5F1FA6
triadic
#1F22A6 #A61F22 #22A61F
tetradic
#1F22A6 #A61F65 #A6A31F #1FA65F
square
#1F22A6 #A61F65 #A6A31F #1FA65F
split-complementary
#1F22A6 #A65F1F #65A61F
monochromatic
#0C0D3F #151772 #1F22A6 #2B2FD7 #5E61E1

Accessibility & contrast

On white

11.43
#1F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F22A6
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F22A6#FFFFFF#000000##FFFFFF
##1F22A61.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f22a6;
/* rgb */ color: rgb(31, 34, 166);
/* oklch */ color: oklch(36.7% 0.201 270.0);
Tailwind
colors: {
  custom: {
    50: '#7560c2',
    500: '#1f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f22a6;
$custom-light: #7560c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f22a6",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 238.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36687,
    "c": 0.20106,
    "h": 270
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#1F22A6
secondary
#C5C35B
accent
#E73CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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