#1C1F8E#1C1F8E

#1C1F8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.175 H 270.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#1C1F8E
RGBrgb(28, 31, 142)
HSLhsl(238, 67%, 33%)
HSVhsv(238, 80%, 56%)
CMYKcmyk(80.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.75, 39.01, -60.55)
CIE-LCHlch(20.75, 72.03, 302.80°)
OKLaboklab(33.34% 0.0022 -0.1753)
OKLCHoklch(33.34% 0.175 270.7)
XYZxyz(5.8497, 3.1792, 25.8913)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1F8E #8E8B1C
analogous
#1C588E #1C1F8E #521C8E
triadic
#1C1F8E #8E1C1F #1F8E1C
tetradic
#1C1F8E #8E1C58 #8E8B1C #1C8E52
square
#1C1F8E #8E1C58 #8E8B1C #1C8E52
split-complementary
#1C1F8E #8E521C #588E1C
monochromatic
#080928 #12145B #1C1F8E #262AC1 #494DDB

Accessibility & contrast

On white

12.84
#1C1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1C1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1F8E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1F8E#FFFFFF#000000##FFFFFF
##1C1F8E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1c1f8e;
/* rgb */ color: rgb(28, 31, 142);
/* oklch */ color: oklch(33.3% 0.175 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e5cb0',
    500: '#1c1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1c1f8e;
$custom-light: #6e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1f8e",
  "rgb": {
    "r": 28,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 238.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33341,
    "c": 0.17535,
    "h": 270.7
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#1C1F8E
secondary
#BDBA49
accent
#E53EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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