#1F2080#1F2080

#1F2080 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.156 H 272.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2080
RGBrgb(31, 32, 128)
HSLhsl(239, 61%, 31%)
HSVhsv(239, 76%, 50%)
CMYKcmyk(75.8%, 75%, 0%, 49.8%)
CIE-LABlab(19.57, 33.75, -53.70)
CIE-LCHlch(19.57, 63.43, 302.15°)
OKLaboklab(32.09% 0.0079 -0.1554)
OKLCHoklch(32.09% 0.156 272.9)
XYZxyz(4.9766, 2.8823, 20.7120)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2080 #807F1F
analogous
#1F5080 #1F2080 #4E1F80
triadic
#1F2080 #801F20 #20801F
tetradic
#1F2080 #801F50 #807F1F #1F804E
square
#1F2080 #801F50 #807F1F #1F804E
split-complementary
#1F2080 #804E1F #50801F
monochromatic
#07071D #13144F #1F2080 #2B2CB1 #4748D2

Accessibility & contrast

On white

13.32
#1F2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2080
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2080#FFFFFF#000000##FFFFFF
##1F20801.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2080;
/* rgb */ color: rgb(31, 32, 128);
/* oklch */ color: oklch(32.1% 0.156 272.9);
Tailwind
colors: {
  custom: {
    50: '#6c5ca6',
    500: '#1f2080',
    950: '#000000',
  },
}
SCSS
$custom: #1f2080;
$custom-light: #6c5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2080",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 239.381,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.15557,
    "h": 272.9
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#1F2080
secondary
#B3B248
accent
#E244E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #1F2080

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

Preview Lab → · Contrast checker → · Palette generator →

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