#1F2772#1F2772

#1F2772 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.128 H 272.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1F2772
RGBrgb(31, 39, 114)
HSLhsl(234, 57%, 28%)
HSVhsv(234, 73%, 45%)
CMYKcmyk(72.8%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.87, 23.92, -44.26)
CIE-LCHlch(19.87, 50.31, 298.39°)
OKLaboklab(31.88% 0.0048 -0.1278)
OKLCHoklch(31.88% 0.128 272.2)
XYZxyz(4.3268, 2.9568, 16.2590)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2772 #726A1F
analogous
#1F5072 #1F2772 #401F72
triadic
#1F2772 #721F27 #27721F
tetradic
#1F2772 #721F50 #726A1F #1F7240
square
#1F2772 #721F50 #726A1F #1F7240
split-complementary
#1F2772 #72401F #50721F
monochromatic
#070818 #121742 #1F2772 #2C37A2 #404ECB

Accessibility & contrast

On white

13.20
#1F2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2772
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2772#FFFFFF#000000##FFFFFF
##1F27721.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2772;
/* rgb */ color: rgb(31, 39, 114);
/* oklch */ color: oklch(31.9% 0.128 272.2);
Tailwind
colors: {
  custom: {
    50: '#67619b',
    500: '#1f2772',
    950: '#000000',
  },
}
SCSS
$custom: #1f2772;
$custom-light: #67619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2772",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 234.217,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31879,
    "c": 0.12785,
    "h": 272.2
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#1F2772
secondary
#A69D47
accent
#D247E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2772

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

Preview Lab → · Contrast checker → · Palette generator →

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