#1F1C8A#1F1C8A

#1F1C8A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.172 H 272.6°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1F1C8A
RGBrgb(31, 28, 138)
HSLhsl(242, 66%, 33%)
HSVhsv(242, 80%, 54%)
CMYKcmyk(77.5%, 79.7%, 0%, 45.9%)
CIE-LABlab(19.87, 39.57, -59.50)
CIE-LCHlch(19.87, 71.46, 303.62°)
OKLaboklab(32.63% 0.0077 -0.1722)
OKLCHoklch(32.63% 0.172 272.6)
XYZxyz(5.5662, 2.9562, 24.3171)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C8A #878A1C
analogous
#1C508A #1F1C8A #561C8A
triadic
#1F1C8A #8A1F1C #1C8A1F
tetradic
#1F1C8A #8A1C50 #878A1C #1C8A56
square
#1F1C8A #8A1C50 #878A1C #1C8A56
split-complementary
#1F1C8A #8A561C #508A1C
monochromatic
#080724 #141257 #1F1C8A #2A26BD #4B47DA

Accessibility & contrast

On white

13.20
#1F1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C8A
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C8A#FFFFFF#000000##FFFFFF
##1F1C8A1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1c8a;
/* rgb */ color: rgb(31, 28, 138);
/* oklch */ color: oklch(32.6% 0.172 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aad',
    500: '#1f1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c8a;
$custom-light: #6f5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c8a",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 241.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32632,
    "c": 0.17237,
    "h": 272.6
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#1F1C8A
secondary
#B8BB46
accent
#E93FE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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