#1F217C#1F217C

#1F217C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.149 H 273.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1F217C
RGBrgb(31, 33, 124)
HSLhsl(239, 60%, 30%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(75%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.37, 31.68, -51.49)
CIE-LCHlch(19.37, 60.46, 301.60°)
OKLaboklab(31.81% 0.008 -0.1489)
OKLCHoklch(31.81% 0.149 273.1)
XYZxyz(4.7458, 2.8338, 19.3617)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F217C #7C7A1F
analogous
#1F4F7C #1F217C #4C1F7C
triadic
#1F217C #7C1F21 #217C1F
tetradic
#1F217C #7C1F4F #7C7A1F #1F7C4C
square
#1F217C #7C1F4F #7C7A1F #1F7C4C
split-complementary
#1F217C #7C4C1F #4F7C1F
monochromatic
#07071A #13144B #1F217C #2B2EAD #4548D0

Accessibility & contrast

On white

13.40
#1F217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F217C
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F217C#FFFFFF#000000##FFFFFF
##1F217C1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f217c;
/* rgb */ color: rgb(31, 33, 124);
/* oklch */ color: oklch(31.8% 0.149 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a5da3',
    500: '#1f217c',
    950: '#000000',
  },
}
SCSS
$custom: #1f217c;
$custom-light: #6a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f217c",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 238.71,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31813,
    "c": 0.14915,
    "h": 273.1
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#1F217C
secondary
#AFAD48
accent
#E045E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F217C

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

Preview Lab → · Contrast checker → · Palette generator →

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