#1F2A84#1F2A84

#1F2A84 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.149 H 270.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1F2A84
RGBrgb(31, 42, 132)
HSLhsl(233, 62%, 32%)
HSVhsv(233, 77%, 52%)
CMYKcmyk(76.5%, 68.2%, 0%, 48.2%)
CIE-LABlab(22.35, 28.77, -51.65)
CIE-LCHlch(22.35, 59.12, 299.11°)
OKLaboklab(34.22% 0.0015 -0.1494)
OKLCHoklch(34.22% 0.149 270.6)
XYZxyz(5.5565, 3.6126, 22.2298)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A84 #84791F
analogous
#1F5D84 #1F2A84 #461F84
triadic
#1F2A84 #841F2A #2A841F
tetradic
#1F2A84 #841F5D #84791F #1F8446
square
#1F2A84 #841F5D #84791F #1F8446
split-complementary
#1F2A84 #84461F #5D841F
monochromatic
#080A21 #131A52 #1F2A84 #2B3AB6 #4958D4

Accessibility & contrast

On white

12.19
#1F2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A84
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A84#FFFFFF#000000##FFFFFF
##1F2A841.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2a84;
/* rgb */ color: rgb(31, 42, 132);
/* oklch */ color: oklch(34.2% 0.149 270.6);
Tailwind
colors: {
  custom: {
    50: '#6c63a9',
    500: '#1f2a84',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a84;
$custom-light: #6c63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a84",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 233.465,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34216,
    "c": 0.1494,
    "h": 270.6
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#1F2A84
secondary
#B7AB48
accent
#D343E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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