#1F1A85#1F1A85

#1F1A85 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.168 H 273.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1F1A85
RGBrgb(31, 26, 133)
HSLhsl(243, 67%, 31%)
HSVhsv(243, 80%, 52%)
CMYKcmyk(76.7%, 80.5%, 0%, 47.8%)
CIE-LABlab(18.90, 38.98, -57.97)
CIE-LCHlch(18.90, 69.85, 303.92°)
OKLaboklab(31.78% 0.0097 -0.1677)
OKLCHoklch(31.78% 0.168 273.3)
XYZxyz(5.1667, 2.7230, 22.4391)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A85 #80851A
analogous
#1A4A85 #1F1A85 #541A85
triadic
#1F1A85 #851F1A #1A851F
tetradic
#1F1A85 #851A4A #80851A #1A8554
square
#1F1A85 #851A4A #80851A #1A8554
split-complementary
#1F1A85 #85541A #4A851A
monochromatic
#07061F #131052 #1F1A85 #2B24B8 #4740DA

Accessibility & contrast

On white

13.59
#1F1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1A85
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A85#FFFFFF#000000##FFFFFF
##1F1A851.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1a85;
/* rgb */ color: rgb(31, 26, 133);
/* oklch */ color: oklch(31.8% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d59aa',
    500: '#1f1a85',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a85;
$custom-light: #6d59aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a85",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 242.804,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.16799,
    "h": 273.3
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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