#1F1CA9#1F1CA9

#1F1CA9 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.3% C 0.209 H 270.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F1CA9
RGBrgb(31, 28, 169)
HSLhsl(241, 72%, 39%)
HSVhsv(241, 83%, 66%)
CMYKcmyk(81.7%, 83.4%, 0%, 33.7%)
CIE-LABlab(23.62, 49.60, -72.33)
CIE-LCHlch(23.62, 87.70, 304.44°)
OKLaboklab(36.33% 0.0007 -0.2094)
OKLCHoklch(36.33% 0.209 270.2)
XYZxyz(8.1393, 3.9854, 37.8687)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CA9 #A6A91C
analogous
#1C5FA9 #1F1CA9 #651CA9
triadic
#1F1CA9 #A91F1C #1CA91F
tetradic
#1F1CA9 #A91C5F #A6A91C #1CA965
square
#1F1CA9 #A91C5F #A6A91C #1CA965
split-complementary
#1F1CA9 #A9651C #5FA91C
monochromatic
#0C0B40 #151374 #1F1CA9 #2B27DB #5E5BE4

Accessibility & contrast

On white

11.68
#1F1CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F1CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1CA9
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CA9#FFFFFF#000000##FFFFFF
##1F1CA91.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAD
Deuteranopia (green-blind)
#0031A7
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f1ca9;
/* rgb */ color: rgb(31, 28, 169);
/* oklch */ color: oklch(36.3% 0.209 270.2);
Tailwind
colors: {
  custom: {
    50: '#775dc4',
    500: '#1f1ca9',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ca9;
$custom-light: #775dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ca9",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 241.277,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36332,
    "c": 0.20937,
    "h": 270.2
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#1F1CA9
secondary
#C5C859
accent
#EE39EA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #1F1CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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