#1F409C#1F409C

#1F409C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.155 H 265.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#1F409C
RGBrgb(31, 64, 156)
HSLhsl(224, 67%, 37%)
HSVhsv(224, 80%, 61%)
CMYKcmyk(80.1%, 59%, 0%, 38.8%)
CIE-LABlab(30.30, 23.13, -53.47)
CIE-LCHlch(30.30, 58.26, 293.40°)
OKLaboklab(40.76% -0.0133 -0.1545)
OKLCHoklch(40.76% 0.155 265.1)
XYZxyz(8.3971, 6.3574, 32.2306)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F409C #9C7B1F
analogous
#1F7F9C #1F409C #3D1F9C
triadic
#1F409C #9C1F40 #409C1F
tetradic
#1F409C #9C1F7F #9C7B1F #1F9C3D
square
#1F409C #9C1F7F #9C7B1F #1F9C3D
split-complementary
#1F409C #9C3D1F #7F9C1F
monochromatic
#0B1636 #152B69 #1F409C #2955CF #587BDE

Accessibility & contrast

On white

9.24
#1F409C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F409C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F409C
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F409C#FFFFFF#000000##FFFFFF
##1F409C1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f409c;
/* rgb */ color: rgb(31, 64, 156);
/* oklch */ color: oklch(40.8% 0.155 265.1);
Tailwind
colors: {
  custom: {
    50: '#7074ba',
    500: '#1f409c',
    950: '#000000',
  },
}
SCSS
$custom: #1f409c;
$custom-light: #7074ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f409c",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 156
  },
  "hsl": {
    "h": 224.16,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40763,
    "c": 0.15503,
    "h": 265.1
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#1F409C
secondary
#C1A555
accent
#BC3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F409C

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

Preview Lab → · Contrast checker → · Palette generator →

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