#1F327B#1F327B

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

Color values

HEX#1F327B
RGBrgb(31, 50, 123)
HSLhsl(228, 60%, 30%)
HSVhsv(228, 75%, 48%)
CMYKcmyk(74.8%, 59.3%, 0%, 51.8%)
CIE-LABlab(23.68, 19.75, -43.80)
CIE-LCHlch(23.68, 48.05, 294.27°)
OKLaboklab(34.95% -0.0042 -0.1263)
OKLCHoklch(34.95% 0.126 268.1)
XYZxyz(5.2796, 4.0020, 19.2293)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F327B #7B681F
analogous
#1F607B #1F327B #3A1F7B
triadic
#1F327B #7B1F32 #327B1F
tetradic
#1F327B #7B1F60 #7B681F #1F7B3A
square
#1F327B #7B1F60 #7B681F #1F7B3A
split-complementary
#1F327B #7B3A1F #607B1F
monochromatic
#060A19 #131E4A #1F327B #2B46AC #4461D0

Accessibility & contrast

On white

11.66
#1F327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F327B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F327B#FFFFFF#000000##FFFFFF
##1F327B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f327b;
/* rgb */ color: rgb(31, 50, 123);
/* oklch */ color: oklch(34.9% 0.126 268.1);
Tailwind
colors: {
  custom: {
    50: '#6969a2',
    500: '#1f327b',
    950: '#000000',
  },
}
SCSS
$custom: #1f327b;
$custom-light: #6969a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f327b",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 227.609,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3495,
    "c": 0.12634,
    "h": 268.1
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F327B

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

Preview Lab → · Contrast checker → · Palette generator →

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