#1F1CA7#1F1CA7

#1F1CA7 is a dark, highly saturated blue. Relative luminance 0.039; OKLCH L 36.1% C 0.207 H 270.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#1F1CA7
RGBrgb(31, 28, 167)
HSLhsl(241, 71%, 38%)
HSVhsv(241, 83%, 65%)
CMYKcmyk(81.4%, 83.2%, 0%, 34.5%)
CIE-LABlab(23.37, 48.97, -71.54)
CIE-LCHlch(23.37, 86.69, 304.40°)
OKLaboklab(36.09% 0.0012 -0.2071)
OKLCHoklch(36.09% 0.207 270.3)
XYZxyz(7.9530, 3.9109, 36.8874)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CA7 #A4A71C
analogous
#1C5EA7 #1F1CA7 #641CA7
triadic
#1F1CA7 #A71F1C #1CA71F
tetradic
#1F1CA7 #A71C5E #A4A71C #1CA764
square
#1F1CA7 #A71C5E #A4A71C #1CA764
split-complementary
#1F1CA7 #A7641C #5EA71C
monochromatic
#0C0A3E #151373 #1F1CA7 #2A26DB #5D5AE3

Accessibility & contrast

On white

11.78
#1F1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1CA7
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CA7#FFFFFF#000000##FFFFFF
##1F1CA71.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0030A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f1ca7;
/* rgb */ color: rgb(31, 28, 167);
/* oklch */ color: oklch(36.1% 0.207 270.3);
Tailwind
colors: {
  custom: {
    50: '#765dc3',
    500: '#1f1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ca7;
$custom-light: #765dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ca7",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 241.295,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.20707,
    "h": 270.3
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#1F1CA7
secondary
#C5C758
accent
#EE3AEA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0413
muted
#7C7982

Preview Lab

Preview with #1F1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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