#1F2AA8#1F2AA8

#1F2AA8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.196 H 269.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2AA8
RGBrgb(31, 42, 168)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 82%, 66%)
CMYKcmyk(81.5%, 75%, 0%, 34.1%)
CIE-LABlab(26.08, 41.86, -67.66)
CIE-LCHlch(26.08, 79.56, 301.74°)
OKLaboklab(38.02% -0.0028 -0.196)
OKLCHoklch(38.02% 0.196 269.2)
XYZxyz(8.4585, 4.7734, 37.5138)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2AA8 #A89D1F
analogous
#1F6FA8 #1F2AA8 #581FA8
triadic
#1F2AA8 #A81F2A #2AA81F
tetradic
#1F2AA8 #A81F6F #A89D1F #1FA858
square
#1F2AA8 #A81F6F #A89D1F #1FA858
split-complementary
#1F2AA8 #A8581F #6FA81F
monochromatic
#0C1041 #151D74 #1F2AA8 #2C3AD8 #606AE2

Accessibility & contrast

On white

10.74
#1F2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2AA8
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2AA8#FFFFFF#000000##FFFFFF
##1F2AA81.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2aa8;
/* rgb */ color: rgb(31, 42, 168);
/* oklch */ color: oklch(38.0% 0.196 269.2);
Tailwind
colors: {
  custom: {
    50: '#7565c3',
    500: '#1f2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f2aa8;
$custom-light: #7565c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2aa8",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 235.182,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38023,
    "c": 0.19605,
    "h": 269.2
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#1F2AA8
secondary
#C6BE5D
accent
#DE3CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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