#1F2382#1F2382

#1F2382 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.155 H 272.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#1F2382
RGBrgb(31, 35, 130)
HSLhsl(238, 61%, 32%)
HSVhsv(238, 76%, 51%)
CMYKcmyk(76.2%, 73.1%, 0%, 49%)
CIE-LABlab(20.46, 32.59, -53.50)
CIE-LCHlch(20.46, 62.64, 301.35°)
OKLaboklab(32.79% 0.0059 -0.1548)
OKLCHoklch(32.79% 0.155 272.2)
XYZxyz(5.1940, 3.1045, 21.4403)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2382 #827E1F
analogous
#1F5582 #1F2382 #4D1F82
triadic
#1F2382 #821F23 #23821F
tetradic
#1F2382 #821F55 #827E1F #1F824D
square
#1F2382 #821F55 #827E1F #1F824D
split-complementary
#1F2382 #824D1F #55821F
monochromatic
#07081F #131651 #1F2382 #2B30B3 #484ED3

Accessibility & contrast

On white

12.95
#1F2382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2382
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2382#FFFFFF#000000##FFFFFF
##1F23821.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2382;
/* rgb */ color: rgb(31, 35, 130);
/* oklch */ color: oklch(32.8% 0.155 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ea7',
    500: '#1f2382',
    950: '#000000',
  },
}
SCSS
$custom: #1f2382;
$custom-light: #6c5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2382",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 130
  },
  "hsl": {
    "h": 237.576,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32787,
    "c": 0.1549,
    "h": 272.2
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#1F2382
secondary
#B5B048
accent
#DE43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2382

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

Preview Lab → · Contrast checker → · Palette generator →

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