#1F34B0#1F34B0

#1F34B0 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.196 H 267.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#1F34B0
RGBrgb(31, 52, 176)
HSLhsl(231, 70%, 41%)
HSVhsv(231, 82%, 69%)
CMYKcmyk(82.4%, 70.5%, 0%, 31%)
CIE-LABlab(29.11, 38.63, -67.46)
CIE-LCHlch(29.11, 77.74, 299.80°)
OKLaboklab(40.45% -0.0074 -0.1955)
OKLCHoklch(40.45% 0.196 267.8)
XYZxyz(9.6268, 5.8807, 41.6936)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F34B0 #B09B1F
analogous
#1F7DB0 #1F34B0 #521FB0
triadic
#1F34B0 #B01F34 #34B01F
tetradic
#1F34B0 #B01F7D #B09B1F #1FB052
square
#1F34B0 #B01F7D #B09B1F #1FB052
split-complementary
#1F34B0 #B0521F #7DB01F
monochromatic
#0D1548 #16257C #1F34B0 #314ADB #6578E4

Accessibility & contrast

On white

9.65
#1F34B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F34B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F34B0
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F34B0#FFFFFF#000000##FFFFFF
##1F34B01.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f34b0;
/* rgb */ color: rgb(31, 52, 176);
/* oklch */ color: oklch(40.4% 0.196 267.8);
Tailwind
colors: {
  custom: {
    50: '#766cc9',
    500: '#1f34b0',
    950: '#000000',
  },
}
SCSS
$custom: #1f34b0;
$custom-light: #766cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f34b0",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 176
  },
  "hsl": {
    "h": 231.31,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.19562,
    "h": 267.8
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#1F34B0
secondary
#C9BA62
accent
#D33BED
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F34B0

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

Preview Lab → · Contrast checker → · Palette generator →

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