#1F419F#1F419F

#1F419F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.158 H 265.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1F419F
RGBrgb(31, 65, 159)
HSLhsl(224, 67%, 37%)
HSVhsv(224, 81%, 62%)
CMYKcmyk(80.5%, 59.1%, 0%, 37.6%)
CIE-LABlab(30.82, 23.64, -54.44)
CIE-LCHlch(30.82, 59.35, 293.47°)
OKLaboklab(41.23% -0.0139 -0.1573)
OKLCHoklch(41.23% 0.158 265)
XYZxyz(8.7112, 6.5741, 33.6040)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F419F #9F7D1F
analogous
#1F819F #1F419F #3D1F9F
triadic
#1F419F #9F1F41 #419F1F
tetradic
#1F419F #9F1F81 #9F7D1F #1F9F3D
square
#1F419F #9F1F81 #9F7D1F #1F9F3D
split-complementary
#1F419F #9F3D1F #819F1F
monochromatic
#0B1739 #152C6C #1F419F #2956D2 #5A7DDF

Accessibility & contrast

On white

9.07
#1F419F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F419F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F419F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F419F#FFFFFF#000000##FFFFFF
##1F419F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f419f;
/* rgb */ color: rgb(31, 65, 159);
/* oklch */ color: oklch(41.2% 0.158 265.0);
Tailwind
colors: {
  custom: {
    50: '#7175bc',
    500: '#1f419f',
    950: '#000000',
  },
}
SCSS
$custom: #1f419f;
$custom-light: #7175bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f419f",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 159
  },
  "hsl": {
    "h": 224.063,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.1579,
    "h": 265
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F419F

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

Preview Lab → · Contrast checker → · Palette generator →

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