#1F2D82#1F2D82

#1F2D82 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.143 H 269.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#1F2D82
RGBrgb(31, 45, 130)
HSLhsl(232, 61%, 32%)
HSVhsv(232, 76%, 51%)
CMYKcmyk(76.2%, 65.4%, 0%, 49%)
CIE-LABlab(22.93, 25.97, -49.44)
CIE-LCHlch(22.93, 55.85, 297.71°)
OKLaboklab(34.58% -0.0004 -0.1429)
OKLCHoklch(34.58% 0.143 269.8)
XYZxyz(5.5313, 3.7792, 21.5527)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D82 #82741F
analogous
#1F5F82 #1F2D82 #431F82
triadic
#1F2D82 #821F2D #2D821F
tetradic
#1F2D82 #821F5F #82741F #1F8243
square
#1F2D82 #821F5F #82741F #1F8243
split-complementary
#1F2D82 #82431F #5F821F
monochromatic
#070B1F #131C51 #1F2D82 #2B3EB3 #485CD3

Accessibility & contrast

On white

11.96
#1F2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D82
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D82#FFFFFF#000000##FFFFFF
##1F2D821.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2d82;
/* rgb */ color: rgb(31, 45, 130);
/* oklch */ color: oklch(34.6% 0.143 269.8);
Tailwind
colors: {
  custom: {
    50: '#6b65a7',
    500: '#1f2d82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d82;
$custom-light: #6b65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d82",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 231.515,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34583,
    "c": 0.1429,
    "h": 269.8
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#1F2D82
secondary
#B5A548
accent
#CE43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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