#1F2876#1F2876

#1F2876 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.132 H 271.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1F2876
RGBrgb(31, 40, 118)
HSLhsl(234, 58%, 29%)
HSVhsv(234, 74%, 46%)
CMYKcmyk(73.7%, 66.1%, 0%, 53.7%)
CIE-LABlab(20.50, 24.77, -45.79)
CIE-LCHlch(20.50, 52.06, 298.41°)
OKLaboklab(32.46% 0.0038 -0.1322)
OKLCHoklch(32.46% 0.132 271.7)
XYZxyz(4.5928, 3.1164, 17.4955)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2876 #766D1F
analogous
#1F5476 #1F2876 #421F76
triadic
#1F2876 #761F28 #28761F
tetradic
#1F2876 #761F54 #766D1F #1F7642
square
#1F2876 #761F54 #766D1F #1F7642
split-complementary
#1F2876 #76421F #54761F
monochromatic
#060818 #121846 #1F2876 #2C38A6 #4250CD

Accessibility & contrast

On white

12.94
#1F2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2876
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2876#FFFFFF#000000##FFFFFF
##1F28761.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2876;
/* rgb */ color: rgb(31, 40, 118);
/* oklch */ color: oklch(32.5% 0.132 271.7);
Tailwind
colors: {
  custom: {
    50: '#68629e',
    500: '#1f2876',
    950: '#000000',
  },
}
SCSS
$custom: #1f2876;
$custom-light: #68629e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2876",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 233.793,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32459,
    "c": 0.1323,
    "h": 271.7
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#1F2876
secondary
#AA9F47
accent
#D246E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2876

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

Preview Lab → · Contrast checker → · Palette generator →

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