#1F327D#1F327D

#1F327D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.1% C 0.129 H 268.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#1F327D
RGBrgb(31, 50, 125)
HSLhsl(228, 60%, 31%)
HSVhsv(228, 75%, 49%)
CMYKcmyk(75.2%, 60%, 0%, 51%)
CIE-LABlab(23.84, 20.54, -44.79)
CIE-LCHlch(23.84, 49.28, 294.64°)
OKLaboklab(35.13% -0.0042 -0.1292)
OKLCHoklch(35.13% 0.129 268.2)
XYZxyz(5.4061, 4.0526, 19.8954)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F327D #7D6A1F
analogous
#1F617D #1F327D #3B1F7D
triadic
#1F327D #7D1F32 #327D1F
tetradic
#1F327D #7D1F61 #7D6A1F #1F7D3B
square
#1F327D #7D1F61 #7D6A1F #1F7D3B
split-complementary
#1F327D #7D3B1F #617D1F
monochromatic
#070B1B #131E4C #1F327D #2B46AE #4562D1

Accessibility & contrast

On white

11.60
#1F327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F327D
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F327D#FFFFFF#000000##FFFFFF
##1F327D1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f327d;
/* rgb */ color: rgb(31, 50, 125);
/* oklch */ color: oklch(35.1% 0.129 268.2);
Tailwind
colors: {
  custom: {
    50: '#6969a3',
    500: '#1f327d',
    950: '#000000',
  },
}
SCSS
$custom: #1f327d;
$custom-light: #6969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f327d",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 227.872,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.12926,
    "h": 268.2
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#1F327D
secondary
#B09B48
accent
#C344E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F327D

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

Preview Lab → · Contrast checker → · Palette generator →

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