#1F2682#1F2682

#1F2682 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.151 H 271.6°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1F2682
RGBrgb(31, 38, 130)
HSLhsl(236, 61%, 32%)
HSVhsv(236, 76%, 51%)
CMYKcmyk(76.2%, 70.8%, 0%, 49%)
CIE-LABlab(21.16, 30.66, -52.33)
CIE-LCHlch(21.16, 60.65, 300.37°)
OKLaboklab(33.3% 0.0042 -0.1514)
OKLCHoklch(33.3% 0.151 271.6)
XYZxyz(5.2861, 3.2887, 21.4710)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2682 #827B1F
analogous
#1F5882 #1F2682 #4A1F82
triadic
#1F2682 #821F26 #26821F
tetradic
#1F2682 #821F58 #827B1F #1F824A
square
#1F2682 #821F58 #827B1F #1F824A
split-complementary
#1F2682 #824A1F #58821F
monochromatic
#07091F #131851 #1F2682 #2B34B3 #4852D3

Accessibility & contrast

On white

12.67
#1F2682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2682
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2682#FFFFFF#000000##FFFFFF
##1F26821.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2682;
/* rgb */ color: rgb(31, 38, 130);
/* oklch */ color: oklch(33.3% 0.151 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b60a7',
    500: '#1f2682',
    950: '#000000',
  },
}
SCSS
$custom: #1f2682;
$custom-light: #6b60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2682",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 235.758,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33297,
    "c": 0.15145,
    "h": 271.6
  },
  "luminance": 0.03289
}

Semantic roles & 50–950 ramp

primary
#1F2682
secondary
#B5AD48
accent
#D943E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2682

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

Preview Lab → · Contrast checker → · Palette generator →

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