#1F327A#1F327A

#1F327A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.125 H 268.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#1F327A
RGBrgb(31, 50, 122)
HSLhsl(227, 59%, 30%)
HSVhsv(227, 75%, 48%)
CMYKcmyk(74.6%, 59%, 0%, 52.2%)
CIE-LABlab(23.60, 19.35, -43.30)
CIE-LCHlch(23.60, 47.43, 294.08°)
OKLaboklab(34.86% -0.0043 -0.1248)
OKLCHoklch(34.86% 0.125 268)
XYZxyz(5.2173, 3.9771, 18.9013)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F327A #7A671F
analogous
#1F5F7A #1F327A #3A1F7A
triadic
#1F327A #7A1F32 #327A1F
tetradic
#1F327A #7A1F5F #7A671F #1F7A3A
square
#1F327A #7A1F5F #7A671F #1F7A3A
split-complementary
#1F327A #7A3A1F #5F7A1F
monochromatic
#060A18 #131E49 #1F327A #2B46AB #4461CF

Accessibility & contrast

On white

11.70
#1F327A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F327A
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F327A#FFFFFF#000000##FFFFFF
##1F327A1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f327a;
/* rgb */ color: rgb(31, 50, 122);
/* oklch */ color: oklch(34.9% 0.125 268.0);
Tailwind
colors: {
  custom: {
    50: '#6869a1',
    500: '#1f327a',
    950: '#000000',
  },
}
SCSS
$custom: #1f327a;
$custom-light: #6869a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f327a",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 122
  },
  "hsl": {
    "h": 227.473,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34862,
    "c": 0.12488,
    "h": 268
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#1F327A
secondary
#AD9847
accent
#C245E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F327A

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

Preview Lab → · Contrast checker → · Palette generator →

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