#1F2282#1F2282

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

Color values

HEX#1F2282
RGBrgb(31, 34, 130)
HSLhsl(238, 61%, 32%)
HSVhsv(238, 76%, 51%)
CMYKcmyk(76.2%, 73.8%, 0%, 49%)
CIE-LABlab(20.23, 33.23, -53.87)
CIE-LCHlch(20.23, 63.30, 301.66°)
OKLaboklab(32.62% 0.0065 -0.1559)
OKLCHoklch(32.62% 0.156 272.4)
XYZxyz(5.1650, 3.0465, 21.4306)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2282 #827F1F
analogous
#1F5482 #1F2282 #4E1F82
triadic
#1F2282 #821F22 #22821F
tetradic
#1F2282 #821F54 #827F1F #1F824E
square
#1F2282 #821F54 #827F1F #1F824E
split-complementary
#1F2282 #824E1F #54821F
monochromatic
#07081F #131551 #1F2282 #2B2FB3 #484CD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2282#FFFFFF#000000##FFFFFF
##1F22821.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)
#003685
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2282;
/* rgb */ color: rgb(31, 34, 130);
/* oklch */ color: oklch(32.6% 0.156 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ea7',
    500: '#1f2282',
    950: '#000000',
  },
}
SCSS
$custom: #1f2282;
$custom-light: #6c5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2282",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 238.182,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.15601,
    "h": 272.4
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#1F2282
secondary
#B5B248
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2282

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

Preview Lab → · Contrast checker → · Palette generator →

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