#1F1C8D#1F1C8D

#1F1C8D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.176 H 272.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1F1C8D
RGBrgb(31, 28, 141)
HSLhsl(242, 67%, 33%)
HSVhsv(242, 80%, 55%)
CMYKcmyk(78%, 80.1%, 0%, 44.7%)
CIE-LABlab(20.22, 40.57, -60.79)
CIE-LCHlch(20.22, 73.09, 303.72°)
OKLaboklab(32.98% 0.007 -0.1759)
OKLCHoklch(32.98% 0.176 272.3)
XYZxyz(5.7864, 3.0443, 25.4768)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C8D #8A8D1C
analogous
#1C518D #1F1C8D #571C8D
triadic
#1F1C8D #8D1F1C #1C8D1F
tetradic
#1F1C8D #8D1C51 #8A8D1C #1C8D57
square
#1F1C8D #8D1C51 #8A8D1C #1C8D57
split-complementary
#1F1C8D #8D571C #518D1C
monochromatic
#090827 #14125A #1F1C8D #2A26C0 #4C49DB

Accessibility & contrast

On white

13.05
#1F1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C8D
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C8D#FFFFFF#000000##FFFFFF
##1F1C8D1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1c8d;
/* rgb */ color: rgb(31, 28, 141);
/* oklch */ color: oklch(33.0% 0.176 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f5bb0',
    500: '#1f1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c8d;
$custom-light: #6f5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c8d",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 241.593,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.32982,
    "c": 0.17609,
    "h": 272.3
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#1F1C8D
secondary
#BABD48
accent
#EA3EE5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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