#1F2181#1F2181

#1F2181 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.156 H 272.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#1F2181
RGBrgb(31, 33, 129)
HSLhsl(239, 61%, 31%)
HSVhsv(239, 76%, 51%)
CMYKcmyk(76%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.90, 33.49, -53.79)
CIE-LCHlch(19.90, 63.36, 301.91°)
OKLaboklab(32.35% 0.0072 -0.1556)
OKLCHoklch(32.35% 0.156 272.6)
XYZxyz(5.0700, 2.9635, 21.0694)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2181 #817F1F
analogous
#1F5281 #1F2181 #4E1F81
triadic
#1F2181 #811F21 #21811F
tetradic
#1F2181 #811F52 #817F1F #1F814E
square
#1F2181 #811F52 #817F1F #1F814E
split-complementary
#1F2181 #814E1F #52811F
monochromatic
#07081E #131450 #1F2181 #2B2EB2 #474AD3

Accessibility & contrast

On white

13.18
#1F2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2181
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2181#FFFFFF#000000##FFFFFF
##1F21811.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2181;
/* rgb */ color: rgb(31, 33, 129);
/* oklch */ color: oklch(32.4% 0.156 272.6);
Tailwind
colors: {
  custom: {
    50: '#6c5da7',
    500: '#1f2181',
    950: '#000000',
  },
}
SCSS
$custom: #1f2181;
$custom-light: #6c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2181",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 238.776,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32354,
    "c": 0.15579,
    "h": 272.6
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#1F2181
secondary
#B4B248
accent
#E143E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2181

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

Preview Lab → · Contrast checker → · Palette generator →

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