#1F2B84#1F2B84

#1F2B84 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.148 H 270.3°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#1F2B84
RGBrgb(31, 43, 132)
HSLhsl(233, 62%, 32%)
HSVhsv(233, 77%, 52%)
CMYKcmyk(76.5%, 67.4%, 0%, 48.2%)
CIE-LABlab(22.60, 28.10, -51.24)
CIE-LCHlch(22.60, 58.43, 298.74°)
OKLaboklab(34.4% 0.0008 -0.1482)
OKLCHoklch(34.4% 0.148 270.3)
XYZxyz(5.5924, 3.6844, 22.2418)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B84 #84781F
analogous
#1F5E84 #1F2B84 #461F84
triadic
#1F2B84 #841F2B #2B841F
tetradic
#1F2B84 #841F5E #84781F #1F8446
square
#1F2B84 #841F5E #84781F #1F8446
split-complementary
#1F2B84 #84461F #5E841F
monochromatic
#080B21 #131B52 #1F2B84 #2B3BB6 #495AD4

Accessibility & contrast

On white

12.09
#1F2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B84
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B84#FFFFFF#000000##FFFFFF
##1F2B841.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2b84;
/* rgb */ color: rgb(31, 43, 132);
/* oklch */ color: oklch(34.4% 0.148 270.3);
Tailwind
colors: {
  custom: {
    50: '#6b64a9',
    500: '#1f2b84',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b84;
$custom-light: #6b64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b84",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 232.871,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.344,
    "c": 0.14817,
    "h": 270.3
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#1F2B84
secondary
#B7AA48
accent
#D243E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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