#1F327E#1F327E

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

Color values

HEX#1F327E
RGBrgb(31, 50, 126)
HSLhsl(228, 61%, 31%)
HSVhsv(228, 75%, 49%)
CMYKcmyk(75.4%, 60.3%, 0%, 50.6%)
CIE-LABlab(23.93, 20.94, -45.29)
CIE-LCHlch(23.93, 49.89, 294.81°)
OKLaboklab(35.22% -0.0041 -0.1306)
OKLCHoklch(35.22% 0.131 268.2)
XYZxyz(5.4703, 4.0783, 20.2335)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F327E #7E6B1F
analogous
#1F617E #1F327E #3B1F7E
triadic
#1F327E #7E1F32 #327E1F
tetradic
#1F327E #7E1F61 #7E6B1F #1F7E3B
square
#1F327E #7E1F61 #7E6B1F #1F7E3B
split-complementary
#1F327E #7E3B1F #617E1F
monochromatic
#070B1C #131F4D #1F327E #2B45AF #4662D1

Accessibility & contrast

On white

11.57
#1F327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F327E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F327E
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F327E#FFFFFF#000000##FFFFFF
##1F327E1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f327e;
/* rgb */ color: rgb(31, 50, 126);
/* oklch */ color: oklch(35.2% 0.131 268.2);
Tailwind
colors: {
  custom: {
    50: '#6969a4',
    500: '#1f327e',
    950: '#000000',
  },
}
SCSS
$custom: #1f327e;
$custom-light: #6969a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f327e",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 228,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.13072,
    "h": 268.2
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#1F327E
secondary
#B19C48
accent
#C444E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F327E

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

Preview Lab → · Contrast checker → · Palette generator →

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