#1F2882#1F2882

#1F2882 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.149 H 271.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1F2882
RGBrgb(31, 40, 130)
HSLhsl(235, 61%, 32%)
HSVhsv(235, 76%, 51%)
CMYKcmyk(76.2%, 69.2%, 0%, 49%)
CIE-LABlab(21.65, 29.34, -51.53)
CIE-LCHlch(21.65, 59.30, 299.66°)
OKLaboklab(33.65% 0.0029 -0.149)
OKLCHoklch(33.65% 0.149 271.1)
XYZxyz(5.3518, 3.4200, 21.4928)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2882 #82791F
analogous
#1F5A82 #1F2882 #481F82
triadic
#1F2882 #821F28 #28821F
tetradic
#1F2882 #821F5A #82791F #1F8248
square
#1F2882 #821F5A #82791F #1F8248
split-complementary
#1F2882 #82481F #5A821F
monochromatic
#070A1F #131951 #1F2882 #2B37B3 #4855D3

Accessibility & contrast

On white

12.47
#1F2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2882
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2882#FFFFFF#000000##FFFFFF
##1F28821.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2882;
/* rgb */ color: rgb(31, 40, 130);
/* oklch */ color: oklch(33.7% 0.149 271.1);
Tailwind
colors: {
  custom: {
    50: '#6b62a7',
    500: '#1f2882',
    950: '#000000',
  },
}
SCSS
$custom: #1f2882;
$custom-light: #6b62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2882",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 234.545,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33651,
    "c": 0.14907,
    "h": 271.1
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#1F2882
secondary
#B5AB48
accent
#D643E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2882

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

Preview Lab → · Contrast checker → · Palette generator →

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