#1F328E#1F328E

#1F328E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.153 H 268.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1F328E
RGBrgb(31, 50, 142)
HSLhsl(230, 64%, 34%)
HSVhsv(230, 78%, 56%)
CMYKcmyk(78.2%, 64.8%, 0%, 44.3%)
CIE-LABlab(25.34, 27.20, -52.99)
CIE-LCHlch(25.34, 59.56, 297.17°)
OKLaboklab(36.7% -0.0042 -0.1532)
OKLCHoklch(36.7% 0.153 268.4)
XYZxyz(6.5865, 4.5248, 26.1122)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F328E #8E7B1F
analogous
#1F6A8E #1F328E #441F8E
triadic
#1F328E #8E1F32 #328E1F
tetradic
#1F328E #8E1F6A #8E7B1F #1F8E44
square
#1F328E #8E1F6A #8E7B1F #1F8E44
split-complementary
#1F328E #8E441F #6A8E1F
monochromatic
#090F2A #14205C #1F328E #2A44C0 #4F66D9

Accessibility & contrast

On white

11.02
#1F328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F328E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F328E#FFFFFF#000000##FFFFFF
##1F328E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f328e;
/* rgb */ color: rgb(31, 50, 142);
/* oklch */ color: oklch(36.7% 0.153 268.4);
Tailwind
colors: {
  custom: {
    50: '#6d69b0',
    500: '#1f328e',
    950: '#000000',
  },
}
SCSS
$custom: #1f328e;
$custom-light: #6d69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f328e",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 229.73,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36697,
    "c": 0.1533,
    "h": 268.4
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#1F328E
secondary
#BBA94D
accent
#CB41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F328E

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

Preview Lab → · Contrast checker → · Palette generator →

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