#1F1CAA#1F1CAA

#1F1CAA is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.5% C 0.211 H 270.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1CAA
RGBrgb(31, 28, 170)
HSLhsl(241, 72%, 39%)
HSVhsv(241, 84%, 67%)
CMYKcmyk(81.8%, 83.5%, 0%, 33.3%)
CIE-LABlab(23.75, 49.91, -72.73)
CIE-LCHlch(23.75, 88.21, 304.46°)
OKLaboklab(36.45% 0.0005 -0.2105)
OKLCHoklch(36.45% 0.211 270.1)
XYZxyz(8.2336, 4.0231, 38.3650)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1CAA #A7AA1C
analogous
#1C60AA #1F1CAA #661CAA
triadic
#1F1CAA #AA1F1C #1CAA1F
tetradic
#1F1CAA #AA1C60 #A7AA1C #1CAA66
square
#1F1CAA #AA1C60 #A7AA1C #1CAA66
split-complementary
#1F1CAA #AA661C #60AA1C
monochromatic
#0C0B41 #151375 #1F1CAA #2B28DC #5F5CE4

Accessibility & contrast

On white

11.64
#1F1CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1CAA
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1CAA#FFFFFF#000000##FFFFFF
##1F1CAA1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AE
Deuteranopia (green-blind)
#0031A8
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f1caa;
/* rgb */ color: rgb(31, 28, 170);
/* oklch */ color: oklch(36.5% 0.211 270.1);
Tailwind
colors: {
  custom: {
    50: '#775dc5',
    500: '#1f1caa',
    950: '#000000',
  },
}
SCSS
$custom: #1f1caa;
$custom-light: #775dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1caa",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 170
  },
  "hsl": {
    "h": 241.268,
    "s": 71.717,
    "l": 38.824
  },
  "oklch": {
    "l": 0.36454,
    "c": 0.21052,
    "h": 270.1
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#1F1CAA
secondary
#C6C85A
accent
#EE39EB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #1F1CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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