#1C1F8A#1C1F8A

#1C1F8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.170 H 271.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1C1F8A
RGBrgb(28, 31, 138)
HSLhsl(238, 66%, 33%)
HSVhsv(238, 80%, 54%)
CMYKcmyk(79.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(20.29, 37.62, -58.81)
CIE-LCHlch(20.29, 69.82, 302.61°)
OKLaboklab(32.88% 0.003 -0.1703)
OKLCHoklch(32.88% 0.17 271)
XYZxyz(5.5548, 3.0612, 24.3379)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1F8A #8A871C
analogous
#1C568A #1C1F8A #501C8A
triadic
#1C1F8A #8A1C1F #1F8A1C
tetradic
#1C1F8A #8A1C56 #8A871C #1C8A50
square
#1C1F8A #8A1C56 #8A871C #1C8A50
split-complementary
#1C1F8A #8A501C #568A1C
monochromatic
#070824 #121457 #1C1F8A #262ABD #474BDA

Accessibility & contrast

On white

13.02
#1C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C1F8A
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1F8A#FFFFFF#000000##FFFFFF
##1C1F8A1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1c1f8a;
/* rgb */ color: rgb(28, 31, 138);
/* oklch */ color: oklch(32.9% 0.170 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d5cad',
    500: '#1c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1c1f8a;
$custom-light: #6d5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1f8a",
  "rgb": {
    "r": 28,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 238.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3288,
    "c": 0.17033,
    "h": 271
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#1C1F8A
secondary
#BBB846
accent
#E53FE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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