#1F2779#1F2779

#1F2779 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.138 H 271.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#1F2779
RGBrgb(31, 39, 121)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 74%, 47%)
CMYKcmyk(74.4%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.53, 26.60, -47.67)
CIE-LCHlch(20.53, 54.59, 299.17°)
OKLaboklab(32.56% 0.0044 -0.1378)
OKLCHoklch(32.56% 0.138 271.8)
XYZxyz(4.7406, 3.1223, 18.4383)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2779 #79711F
analogous
#1F5479 #1F2779 #441F79
triadic
#1F2779 #791F27 #27791F
tetradic
#1F2779 #791F54 #79711F #1F7944
square
#1F2779 #791F54 #79711F #1F7944
split-complementary
#1F2779 #79441F #54791F
monochromatic
#060818 #131748 #1F2779 #2B37AA #4350CF

Accessibility & contrast

On white

12.93
#1F2779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2779
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2779#FFFFFF#000000##FFFFFF
##1F27791.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2779;
/* rgb */ color: rgb(31, 39, 121);
/* oklch */ color: oklch(32.6% 0.138 271.8);
Tailwind
colors: {
  custom: {
    50: '#6961a1',
    500: '#1f2779',
    950: '#000000',
  },
}
SCSS
$custom: #1f2779;
$custom-light: #6961a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2779",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 234.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32563,
    "c": 0.13783,
    "h": 271.8
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#1F2779
secondary
#ACA347
accent
#D445E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2779

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

Preview Lab → · Contrast checker → · Palette generator →

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