#1F34A7#1F34A7

#1F34A7 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.184 H 267.9°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1F34A7
RGBrgb(31, 52, 167)
HSLhsl(231, 69%, 39%)
HSVhsv(231, 81%, 65%)
CMYKcmyk(81.4%, 68.9%, 0%, 34.5%)
CIE-LABlab(28.21, 35.34, -63.54)
CIE-LCHlch(28.21, 72.70, 299.08°)
OKLaboklab(39.53% -0.0067 -0.1841)
OKLCHoklch(39.53% 0.184 267.9)
XYZxyz(8.7657, 5.5363, 37.1583)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F34A7 #A7921F
analogous
#1F78A7 #1F34A7 #4E1FA7
triadic
#1F34A7 #A71F34 #34A71F
tetradic
#1F34A7 #A71F78 #A7921F #1FA74E
square
#1F34A7 #A71F78 #A7921F #1FA74E
split-complementary
#1F34A7 #A74E1F #78A71F
monochromatic
#0C1440 #152473 #1F34A7 #2B46D8 #5F73E1

Accessibility & contrast

On white

9.96
#1F34A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F34A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F34A7
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F34A7#FFFFFF#000000##FFFFFF
##1F34A71.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f34a7;
/* rgb */ color: rgb(31, 52, 167);
/* oklch */ color: oklch(39.5% 0.184 267.9);
Tailwind
colors: {
  custom: {
    50: '#746bc2',
    500: '#1f34a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f34a7;
$custom-light: #746bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f34a7",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 230.735,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39527,
    "c": 0.18418,
    "h": 267.9
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#1F34A7
secondary
#C6B55C
accent
#D03CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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