#1F2980#1F2980

#1F2980 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.145 H 271.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1F2980
RGBrgb(31, 41, 128)
HSLhsl(234, 61%, 31%)
HSVhsv(234, 76%, 50%)
CMYKcmyk(75.8%, 68%, 0%, 49.8%)
CIE-LABlab(21.71, 27.92, -50.18)
CIE-LCHlch(21.71, 57.42, 299.09°)
OKLaboklab(33.63% 0.0024 -0.1451)
OKLCHoklch(33.63% 0.145 271)
XYZxyz(5.2530, 3.4351, 20.8041)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2980 #80761F
analogous
#1F5980 #1F2980 #451F80
triadic
#1F2980 #801F29 #29801F
tetradic
#1F2980 #801F59 #80761F #1F8045
square
#1F2980 #801F59 #80761F #1F8045
split-complementary
#1F2980 #80451F #59801F
monochromatic
#07091D #13194F #1F2980 #2B39B1 #4755D2

Accessibility & contrast

On white

12.45
#1F2980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2980
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2980#FFFFFF#000000##FFFFFF
##1F29801.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2980;
/* rgb */ color: rgb(31, 41, 128);
/* oklch */ color: oklch(33.6% 0.145 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b63a6',
    500: '#1f2980',
    950: '#000000',
  },
}
SCSS
$custom: #1f2980;
$custom-light: #6b63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2980",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 233.814,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33632,
    "c": 0.1451,
    "h": 271
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#1F2980
secondary
#B3A848
accent
#D444E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F2980

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

Preview Lab → · Contrast checker → · Palette generator →

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