#1F1C8E#1F1C8E

#1F1C8E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.177 H 272.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#1F1C8E
RGBrgb(31, 28, 142)
HSLhsl(242, 67%, 33%)
HSVhsv(242, 80%, 56%)
CMYKcmyk(78.2%, 80.3%, 0%, 44.3%)
CIE-LABlab(20.34, 40.91, -61.22)
CIE-LCHlch(20.34, 73.63, 303.75°)
OKLaboklab(33.1% 0.0068 -0.1772)
OKLCHoklch(33.1% 0.177 272.2)
XYZxyz(5.8612, 3.0742, 25.8704)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C8E #8B8E1C
analogous
#1C528E #1F1C8E #581C8E
triadic
#1F1C8E #8E1F1C #1C8E1F
tetradic
#1F1C8E #8E1C52 #8B8E1C #1C8E58
square
#1F1C8E #8E1C52 #8B8E1C #1C8E58
split-complementary
#1F1C8E #8E581C #528E1C
monochromatic
#090828 #14125B #1F1C8E #2A26C1 #4D49DB

Accessibility & contrast

On white

13.00
#1F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C8E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C8E#FFFFFF#000000##FFFFFF
##1F1C8E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1c8e;
/* rgb */ color: rgb(31, 28, 142);
/* oklch */ color: oklch(33.1% 0.177 272.2);
Tailwind
colors: {
  custom: {
    50: '#705bb0',
    500: '#1f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c8e;
$custom-light: #705bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c8e",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 241.579,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.331,
    "c": 0.17732,
    "h": 272.2
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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