#1F2782#1F2782

#1F2782 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.150 H 271.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2782
RGBrgb(31, 39, 130)
HSLhsl(235, 61%, 32%)
HSVhsv(235, 76%, 51%)
CMYKcmyk(76.2%, 70%, 0%, 49%)
CIE-LABlab(21.41, 30.00, -51.94)
CIE-LCHlch(21.41, 59.98, 300.02°)
OKLaboklab(33.47% 0.0035 -0.1502)
OKLCHoklch(33.47% 0.15 271.3)
XYZxyz(5.3185, 3.3535, 21.4818)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2782 #827A1F
analogous
#1F5982 #1F2782 #491F82
triadic
#1F2782 #821F27 #27821F
tetradic
#1F2782 #821F59 #827A1F #1F8249
square
#1F2782 #821F59 #827A1F #1F8249
split-complementary
#1F2782 #82491F #59821F
monochromatic
#07091F #131851 #1F2782 #2B36B3 #4853D3

Accessibility & contrast

On white

12.57
#1F2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2782
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2782#FFFFFF#000000##FFFFFF
##1F27821.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2782;
/* rgb */ color: rgb(31, 39, 130);
/* oklch */ color: oklch(33.5% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#6b61a7',
    500: '#1f2782',
    950: '#000000',
  },
}
SCSS
$custom: #1f2782;
$custom-light: #6b61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2782",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 235.152,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33473,
    "c": 0.15027,
    "h": 271.3
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#1F2782
secondary
#B5AC48
accent
#D843E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2782

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

Preview Lab → · Contrast checker → · Palette generator →

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