#1F2184#1F2184

#1F2184 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.160 H 272.4°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1F2184
RGBrgb(31, 33, 132)
HSLhsl(239, 62%, 32%)
HSVhsv(239, 77%, 52%)
CMYKcmyk(76.5%, 75%, 0%, 48.2%)
CIE-LABlab(20.22, 34.57, -55.15)
CIE-LCHlch(20.22, 65.09, 302.08°)
OKLaboklab(32.68% 0.0067 -0.1596)
OKLCHoklch(32.68% 0.16 272.4)
XYZxyz(5.2724, 3.0444, 22.1351)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2184 #84821F
analogous
#1F5484 #1F2184 #501F84
triadic
#1F2184 #841F21 #21841F
tetradic
#1F2184 #841F54 #84821F #1F8450
square
#1F2184 #841F54 #84821F #1F8450
split-complementary
#1F2184 #84501F #54841F
monochromatic
#080821 #131552 #1F2184 #2B2DB6 #494CD4

Accessibility & contrast

On white

13.05
#1F2184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2184
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2184#FFFFFF#000000##FFFFFF
##1F21841.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2184;
/* rgb */ color: rgb(31, 33, 132);
/* oklch */ color: oklch(32.7% 0.160 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c5da9',
    500: '#1f2184',
    950: '#000000',
  },
}
SCSS
$custom: #1f2184;
$custom-light: #6c5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2184",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 238.812,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.15974,
    "h": 272.4
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#1F2184
secondary
#B7B448
accent
#E243E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2184

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

Preview Lab → · Contrast checker → · Palette generator →

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