#1F1A84#1F1A84

#1F1A84 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.167 H 273.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1A84
RGBrgb(31, 26, 132)
HSLhsl(243, 67%, 31%)
HSVhsv(243, 80%, 52%)
CMYKcmyk(76.5%, 80.3%, 0%, 48.2%)
CIE-LABlab(18.78, 38.65, -57.53)
CIE-LCHlch(18.78, 69.30, 303.89°)
OKLaboklab(31.66% 0.0099 -0.1664)
OKLCHoklch(31.66% 0.167 273.4)
XYZxyz(5.0979, 2.6955, 22.0769)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A84 #7F841A
analogous
#1A4A84 #1F1A84 #541A84
triadic
#1F1A84 #841F1A #1A841F
tetradic
#1F1A84 #841A4A #7F841A #1A8454
square
#1F1A84 #841A4A #7F841A #1A8454
split-complementary
#1F1A84 #84541A #4A841A
monochromatic
#07061E #131051 #1F1A84 #2B24B7 #463FD9

Accessibility & contrast

On white

13.64
#1F1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A84
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A84#FFFFFF#000000##FFFFFF
##1F1A841.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1a84;
/* rgb */ color: rgb(31, 26, 132);
/* oklch */ color: oklch(31.7% 0.167 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d59a9',
    500: '#1f1a84',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a84;
$custom-light: #6d59a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a84",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 242.83,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.16674,
    "h": 273.4
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#1F1A84
secondary
#B2B842
accent
#EA3EE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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