#1F2B82#1F2B82

#1F2B82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.145 H 270.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1F2B82
RGBrgb(31, 43, 130)
HSLhsl(233, 61%, 32%)
HSVhsv(233, 76%, 51%)
CMYKcmyk(76.2%, 66.9%, 0%, 49%)
CIE-LABlab(22.41, 27.33, -50.29)
CIE-LCHlch(22.41, 57.24, 298.52°)
OKLaboklab(34.2% 0.001 -0.1454)
OKLCHoklch(34.2% 0.145 270.4)
XYZxyz(5.4568, 3.6302, 21.5279)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B82 #82761F
analogous
#1F5D82 #1F2B82 #451F82
triadic
#1F2B82 #821F2B #2B821F
tetradic
#1F2B82 #821F5D #82761F #1F8245
square
#1F2B82 #821F5D #82761F #1F8245
split-complementary
#1F2B82 #82451F #5D821F
monochromatic
#070A1F #131B51 #1F2B82 #2B3BB3 #4859D3

Accessibility & contrast

On white

12.17
#1F2B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B82
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B82#FFFFFF#000000##FFFFFF
##1F2B821.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2b82;
/* rgb */ color: rgb(31, 43, 130);
/* oklch */ color: oklch(34.2% 0.145 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b64a7',
    500: '#1f2b82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b82;
$custom-light: #6b64a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b82",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 232.727,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34203,
    "c": 0.1454,
    "h": 270.4
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#1F2B82
secondary
#B5A848
accent
#D143E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2B82

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

Preview Lab → · Contrast checker → · Palette generator →

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