#1F22B3#1F22B3

#1F22B3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.216 H 269.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#1F22B3
RGBrgb(31, 34, 179)
HSLhsl(239, 70%, 41%)
HSVhsv(239, 83%, 70%)
CMYKcmyk(82.7%, 81%, 0%, 29.8%)
CIE-LABlab(25.83, 49.86, -74.68)
CIE-LCHlch(25.83, 89.79, 303.73°)
OKLaboklab(38.21% -0.0025 -0.2163)
OKLCHoklch(38.21% 0.216 269.3)
XYZxyz(9.2710, 4.6889, 43.0555)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F22B3 #B3B01F
analogous
#1F6CB3 #1F22B3 #661FB3
triadic
#1F22B3 #B31F22 #22B31F
tetradic
#1F22B3 #B31F6C #B3B01F #1FB366
square
#1F22B3 #B31F6C #B3B01F #1FB366
split-complementary
#1F22B3 #B3661F #6CB31F
monochromatic
#0D0E4B #16187F #1F22B3 #3337DC #686AE5

Accessibility & contrast

On white

10.84
#1F22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F22B3
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F22B3#FFFFFF#000000##FFFFFF
##1F22B31.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f22b3;
/* rgb */ color: rgb(31, 34, 179);
/* oklch */ color: oklch(38.2% 0.216 269.3);
Tailwind
colors: {
  custom: {
    50: '#7961cb',
    500: '#1f22b3',
    950: '#000000',
  },
}
SCSS
$custom: #1f22b3;
$custom-light: #7961cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f22b3",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 238.784,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38215,
    "c": 0.21628,
    "h": 269.3
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#1F22B3
secondary
#CAC864
accent
#EA3BED
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1F22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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