#1F2879#1F2879

#1F2879 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.137 H 271.5°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2879
RGBrgb(31, 40, 121)
HSLhsl(234, 59%, 30%)
HSVhsv(234, 74%, 47%)
CMYKcmyk(74.4%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.79, 25.92, -47.25)
CIE-LCHlch(20.79, 53.89, 298.75°)
OKLaboklab(32.75% 0.0036 -0.1365)
OKLCHoklch(32.75% 0.137 271.5)
XYZxyz(4.7739, 3.1889, 18.4494)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2879 #79701F
analogous
#1F5579 #1F2879 #431F79
triadic
#1F2879 #791F28 #28791F
tetradic
#1F2879 #791F55 #79701F #1F7943
square
#1F2879 #791F55 #79701F #1F7943
split-complementary
#1F2879 #79431F #55791F
monochromatic
#060818 #131848 #1F2879 #2B38AA #4351CF

Accessibility & contrast

On white

12.82
#1F2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2879
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2879#FFFFFF#000000##FFFFFF
##1F28791.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2879;
/* rgb */ color: rgb(31, 40, 121);
/* oklch */ color: oklch(32.8% 0.137 271.5);
Tailwind
colors: {
  custom: {
    50: '#6962a1',
    500: '#1f2879',
    950: '#000000',
  },
}
SCSS
$custom: #1f2879;
$custom-light: #6962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2879",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 234,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.13656,
    "h": 271.5
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#1F2879
secondary
#ACA247
accent
#D345E2
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2879

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

Preview Lab → · Contrast checker → · Palette generator →

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