#1F327C#1F327C

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

Color values

HEX#1F327C
RGBrgb(31, 50, 124)
HSLhsl(228, 60%, 30%)
HSVhsv(228, 75%, 49%)
CMYKcmyk(75%, 59.7%, 0%, 51.4%)
CIE-LABlab(23.76, 20.15, -44.30)
CIE-LCHlch(23.76, 48.66, 294.46°)
OKLaboklab(35.04% -0.0042 -0.1277)
OKLCHoklch(35.04% 0.128 268.1)
XYZxyz(5.3425, 4.0272, 19.5606)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F327C #7C691F
analogous
#1F607C #1F327C #3A1F7C
triadic
#1F327C #7C1F32 #327C1F
tetradic
#1F327C #7C1F60 #7C691F #1F7C3A
square
#1F327C #7C1F60 #7C691F #1F7C3A
split-complementary
#1F327C #7C3A1F #607C1F
monochromatic
#070B1A #131E4B #1F327C #2B46AD #4561D0

Accessibility & contrast

On white

11.63
#1F327C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F327C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F327C#FFFFFF#000000##FFFFFF
##1F327C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f327c;
/* rgb */ color: rgb(31, 50, 124);
/* oklch */ color: oklch(35.0% 0.128 268.1);
Tailwind
colors: {
  custom: {
    50: '#6969a3',
    500: '#1f327c',
    950: '#000000',
  },
}
SCSS
$custom: #1f327c;
$custom-light: #6969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f327c",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 124
  },
  "hsl": {
    "h": 227.742,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35038,
    "c": 0.12781,
    "h": 268.1
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#1F327C
secondary
#AF9A48
accent
#C345E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F327C

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

Preview Lab → · Contrast checker → · Palette generator →

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