#1F2E84#1F2E84

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

Color values

HEX#1F2E84
RGBrgb(31, 46, 132)
HSLhsl(231, 62%, 32%)
HSVhsv(231, 77%, 52%)
CMYKcmyk(76.5%, 65.2%, 0%, 48.2%)
CIE-LABlab(23.37, 26.06, -49.97)
CIE-LCHlch(23.37, 56.36, 297.54°)
OKLaboklab(34.97% -0.0012 -0.1444)
OKLCHoklch(34.97% 0.144 269.5)
XYZxyz(5.7055, 3.9106, 22.2795)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E84 #84751F
analogous
#1F6184 #1F2E84 #431F84
triadic
#1F2E84 #841F2E #2E841F
tetradic
#1F2E84 #841F61 #84751F #1F8443
square
#1F2E84 #841F61 #84751F #1F8443
split-complementary
#1F2E84 #84431F #61841F
monochromatic
#080B21 #131D52 #1F2E84 #2B3FB6 #495ED4

Accessibility & contrast

On white

11.78
#1F2E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E84
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E84#FFFFFF#000000##FFFFFF
##1F2E841.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2e84;
/* rgb */ color: rgb(31, 46, 132);
/* oklch */ color: oklch(35.0% 0.144 269.5);
Tailwind
colors: {
  custom: {
    50: '#6b66a9',
    500: '#1f2e84',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e84;
$custom-light: #6b66a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e84",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 132
  },
  "hsl": {
    "h": 231.089,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34969,
    "c": 0.14443,
    "h": 269.5
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#1F2E84
secondary
#B7A648
accent
#CD43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2E84

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

Preview Lab → · Contrast checker → · Palette generator →

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