#1F34B4#1F34B4

#1F34B4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 40.9% C 0.201 H 267.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#1F34B4
RGBrgb(31, 52, 180)
HSLhsl(232, 71%, 41%)
HSVhsv(232, 83%, 71%)
CMYKcmyk(82.8%, 71.1%, 0%, 29.4%)
CIE-LABlab(29.52, 40.07, -69.17)
CIE-LCHlch(29.52, 79.94, 300.09°)
OKLaboklab(40.86% -0.0078 -0.2005)
OKLCHoklch(40.86% 0.201 267.8)
XYZxyz(10.0284, 6.0414, 43.8087)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F34B4 #B49F1F
analogous
#1F7FB4 #1F34B4 #551FB4
triadic
#1F34B4 #B41F34 #34B41F
tetradic
#1F34B4 #B41F7F #B49F1F #1FB455
square
#1F34B4 #B41F7F #B49F1F #1FB455
split-complementary
#1F34B4 #B4551F #7FB41F
monochromatic
#0D164C #162580 #1F34B4 #344CDC #687AE5

Accessibility & contrast

On white

9.51
#1F34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F34B4
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F34B4#FFFFFF#000000##FFFFFF
##1F34B41.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f34b4;
/* rgb */ color: rgb(31, 52, 180);
/* oklch */ color: oklch(40.9% 0.201 267.8);
Tailwind
colors: {
  custom: {
    50: '#776ccc',
    500: '#1f34b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f34b4;
$custom-light: #776ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f34b4",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 231.544,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40864,
    "c": 0.20062,
    "h": 267.8
  },
  "luminance": 0.06043
}

Semantic roles & 50–950 ramp

primary
#1F34B4
secondary
#CBBC64
accent
#D43AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #1F34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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