#1F2182#1F2182

#1F2182 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.157 H 272.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2182
RGBrgb(31, 33, 130)
HSLhsl(239, 61%, 32%)
HSVhsv(239, 76%, 51%)
CMYKcmyk(76.2%, 74.6%, 0%, 49%)
CIE-LABlab(20.00, 33.85, -54.24)
CIE-LCHlch(20.00, 63.94, 301.96°)
OKLaboklab(32.46% 0.007 -0.157)
OKLCHoklch(32.46% 0.157 272.5)
XYZxyz(5.1368, 2.9902, 21.4212)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2182 #82801F
analogous
#1F5382 #1F2182 #4F1F82
triadic
#1F2182 #821F21 #21821F
tetradic
#1F2182 #821F53 #82801F #1F824F
square
#1F2182 #821F53 #82801F #1F824F
split-complementary
#1F2182 #824F1F #53821F
monochromatic
#07081F #131451 #1F2182 #2B2EB3 #484BD3

Accessibility & contrast

On white

13.14
#1F2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2182
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2182#FFFFFF#000000##FFFFFF
##1F21821.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2182;
/* rgb */ color: rgb(31, 33, 130);
/* oklch */ color: oklch(32.5% 0.157 272.5);
Tailwind
colors: {
  custom: {
    50: '#6c5da7',
    500: '#1f2182',
    950: '#000000',
  },
}
SCSS
$custom: #1f2182;
$custom-light: #6c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2182",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 238.788,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32463,
    "c": 0.15712,
    "h": 272.5
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#1F2182
secondary
#B5B348
accent
#E143E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2182

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

Preview Lab → · Contrast checker → · Palette generator →

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