#1F2E82#1F2E82

#1F2E82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.142 H 269.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1F2E82
RGBrgb(31, 46, 130)
HSLhsl(231, 61%, 32%)
HSVhsv(231, 76%, 51%)
CMYKcmyk(76.2%, 64.6%, 0%, 49%)
CIE-LABlab(23.19, 25.29, -49.01)
CIE-LCHlch(23.19, 55.15, 297.29°)
OKLaboklab(34.78% -0.0011 -0.1416)
OKLCHoklch(34.78% 0.142 269.5)
XYZxyz(5.5700, 3.8564, 21.5656)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E82 #82731F
analogous
#1F6082 #1F2E82 #421F82
triadic
#1F2E82 #821F2E #2E821F
tetradic
#1F2E82 #821F60 #82731F #1F8242
square
#1F2E82 #821F60 #82731F #1F8242
split-complementary
#1F2E82 #82421F #60821F
monochromatic
#070B1F #131D51 #1F2E82 #2B3FB3 #485DD3

Accessibility & contrast

On white

11.86
#1F2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E82
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E82#FFFFFF#000000##FFFFFF
##1F2E821.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2e82;
/* rgb */ color: rgb(31, 46, 130);
/* oklch */ color: oklch(34.8% 0.142 269.5);
Tailwind
colors: {
  custom: {
    50: '#6b66a7',
    500: '#1f2e82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e82;
$custom-light: #6b66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e82",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 230.909,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.14162,
    "h": 269.5
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#1F2E82
secondary
#B5A448
accent
#CC43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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