#1F1CA1#1F1CA1

#1F1CA1 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.4% C 0.200 H 270.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1F1CA1
RGBrgb(31, 28, 161)
HSLhsl(241, 70%, 37%)
HSVhsv(241, 83%, 63%)
CMYKcmyk(80.7%, 82.6%, 0%, 36.9%)
CIE-LABlab(22.63, 47.09, -69.12)
CIE-LCHlch(22.63, 83.64, 304.26°)
OKLaboklab(35.36% 0.0025 -0.2001)
OKLCHoklch(35.36% 0.2 270.7)
XYZxyz(7.4112, 3.6942, 34.0338)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CA1 #9EA11C
analogous
#1C5CA1 #1F1CA1 #611CA1
triadic
#1F1CA1 #A11F1C #1CA11F
tetradic
#1F1CA1 #A11C5C #9EA11C #1CA161
square
#1F1CA1 #A11C5C #9EA11C #1CA161
split-complementary
#1F1CA1 #A1611C #5CA11C
monochromatic
#0B0A39 #15136D #1F1CA1 #2925D5 #5956E2

Accessibility & contrast

On white

12.08
#1F1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1CA1
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CA1#FFFFFF#000000##FFFFFF
##1F1CA11.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1ca1;
/* rgb */ color: rgb(31, 28, 161);
/* oklch */ color: oklch(35.4% 0.200 270.7);
Tailwind
colors: {
  custom: {
    50: '#755cbe',
    500: '#1f1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ca1;
$custom-light: #755cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ca1",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 241.353,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35363,
    "c": 0.2001,
    "h": 270.7
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#1F1CA1
secondary
#C2C554
accent
#ED3BE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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