#1F2982#1F2982

#1F2982 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.148 H 270.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1F2982
RGBrgb(31, 41, 130)
HSLhsl(234, 61%, 32%)
HSVhsv(234, 76%, 51%)
CMYKcmyk(76.2%, 68.5%, 0%, 49%)
CIE-LABlab(21.90, 28.68, -51.12)
CIE-LCHlch(21.90, 58.62, 299.29°)
OKLaboklab(33.83% 0.0023 -0.1478)
OKLCHoklch(33.83% 0.148 270.9)
XYZxyz(5.3859, 3.4883, 21.5042)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2982 #82781F
analogous
#1F5B82 #1F2982 #471F82
triadic
#1F2982 #821F29 #29821F
tetradic
#1F2982 #821F5B #82781F #1F8247
square
#1F2982 #821F5B #82781F #1F8247
split-complementary
#1F2982 #82471F #5B821F
monochromatic
#070A1F #131951 #1F2982 #2B39B3 #4856D3

Accessibility & contrast

On white

12.37
#1F2982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2982
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2982#FFFFFF#000000##FFFFFF
##1F29821.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2982;
/* rgb */ color: rgb(31, 41, 130);
/* oklch */ color: oklch(33.8% 0.148 270.9);
Tailwind
colors: {
  custom: {
    50: '#6b63a7',
    500: '#1f2982',
    950: '#000000',
  },
}
SCSS
$custom: #1f2982;
$custom-light: #6b63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2982",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 233.939,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33832,
    "c": 0.14787,
    "h": 270.9
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#1F2982
secondary
#B5AA48
accent
#D443E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2982

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

Preview Lab → · Contrast checker → · Palette generator →

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