#1F1CA0#1F1CA0

#1F1CA0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.199 H 270.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1F1CA0
RGBrgb(31, 28, 160)
HSLhsl(241, 70%, 37%)
HSVhsv(241, 83%, 63%)
CMYKcmyk(80.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(22.51, 46.77, -68.72)
CIE-LCHlch(22.51, 83.12, 304.24°)
OKLaboklab(35.24% 0.0028 -0.1989)
OKLCHoklch(35.24% 0.199 270.8)
XYZxyz(7.3233, 3.6590, 33.5712)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CA0 #9DA01C
analogous
#1C5BA0 #1F1CA0 #611CA0
triadic
#1F1CA0 #A01F1C #1CA01F
tetradic
#1F1CA0 #A01C5B #9DA01C #1CA061
square
#1F1CA0 #A01C5B #9DA01C #1CA061
split-complementary
#1F1CA0 #A0611C #5BA01C
monochromatic
#0B0A38 #15136C #1F1CA0 #2925D4 #5855E1

Accessibility & contrast

On white

12.12
#1F1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1CA0
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CA0#FFFFFF#000000##FFFFFF
##1F1CA01.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1ca0;
/* rgb */ color: rgb(31, 28, 160);
/* oklch */ color: oklch(35.2% 0.199 270.8);
Tailwind
colors: {
  custom: {
    50: '#745cbe',
    500: '#1f1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ca0;
$custom-light: #745cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ca0",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 241.364,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35242,
    "c": 0.19893,
    "h": 270.8
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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