#1F1CB1#1F1CB1

#1F1CB1 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.218 H 269.7°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1F1CB1
RGBrgb(31, 28, 177)
HSLhsl(241, 73%, 40%)
HSVhsv(241, 84%, 69%)
CMYKcmyk(82.5%, 84.2%, 0%, 30.6%)
CIE-LABlab(24.62, 52.06, -75.48)
CIE-LCHlch(24.62, 91.70, 304.59°)
OKLaboklab(37.31% -0.001 -0.2185)
OKLCHoklch(37.31% 0.218 269.7)
XYZxyz(8.9134, 4.2951, 41.9457)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CB1 #AEB11C
analogous
#1C63B1 #1F1CB1 #691CB1
triadic
#1F1CB1 #B11F1C #1CB11F
tetradic
#1F1CB1 #B11C63 #AEB11C #1CB169
square
#1F1CB1 #B11C63 #AEB11C #1CB169
split-complementary
#1F1CB1 #B1691C #63B11C
monochromatic
#0C0B47 #16147C #1F1CB1 #302CDE #6461E6

Accessibility & contrast

On white

11.30
#1F1CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F1CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1CB1
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CB1#FFFFFF#000000##FFFFFF
##1F1CB11.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B5
Deuteranopia (green-blind)
#0032AF
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f1cb1;
/* rgb */ color: rgb(31, 28, 177);
/* oklch */ color: oklch(37.3% 0.218 269.7);
Tailwind
colors: {
  custom: {
    50: '#795dca',
    500: '#1f1cb1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1cb1;
$custom-light: #795dca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1cb1",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 177
  },
  "hsl": {
    "h": 241.208,
    "s": 72.683,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.21848,
    "h": 269.7
  },
  "luminance": 0.04296
}

Semantic roles & 50–950 ramp

primary
#1F1CB1
secondary
#C8CB5E
accent
#EF38EC
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F1CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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