#1F22A8#1F22A8

#1F22A8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 36.9% C 0.203 H 269.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#1F22A8
RGBrgb(31, 34, 168)
HSLhsl(239, 69%, 39%)
HSVhsv(239, 82%, 66%)
CMYKcmyk(81.5%, 79.8%, 0%, 34.1%)
CIE-LABlab(24.52, 46.31, -70.24)
CIE-LCHlch(24.52, 84.14, 303.40°)
OKLaboklab(36.92% -0.0004 -0.2034)
OKLCHoklch(36.92% 0.203 269.9)
XYZxyz(8.2026, 4.2616, 37.4284)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F22A8 #A8A51F
analogous
#1F67A8 #1F22A8 #611FA8
triadic
#1F22A8 #A81F22 #22A81F
tetradic
#1F22A8 #A81F67 #A8A51F #1FA861
square
#1F22A8 #A81F67 #A8A51F #1FA861
split-complementary
#1F22A8 #A8611F #67A81F
monochromatic
#0C0D41 #151874 #1F22A8 #2C30D8 #6063E2

Accessibility & contrast

On white

11.34
#1F22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F22A8
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F22A8#FFFFFF#000000##FFFFFF
##1F22A81.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f22a8;
/* rgb */ color: rgb(31, 34, 168);
/* oklch */ color: oklch(36.9% 0.203 269.9);
Tailwind
colors: {
  custom: {
    50: '#7660c3',
    500: '#1f22a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f22a8;
$custom-light: #7660c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f22a8",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 238.686,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3692,
    "c": 0.20343,
    "h": 269.9
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#1F22A8
secondary
#C6C45D
accent
#E83CEC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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