#1F2572#1F2572

#1F2572 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.130 H 272.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#1F2572
RGBrgb(31, 37, 114)
HSLhsl(236, 57%, 28%)
HSVhsv(236, 73%, 45%)
CMYKcmyk(72.8%, 67.5%, 0%, 55.3%)
CIE-LABlab(19.35, 25.30, -45.12)
CIE-LCHlch(19.35, 51.73, 299.28°)
OKLaboklab(31.49% 0.0064 -0.1303)
OKLCHoklch(31.49% 0.13 272.8)
XYZxyz(4.2629, 2.8289, 16.2377)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2572 #726C1F
analogous
#1F4E72 #1F2572 #421F72
triadic
#1F2572 #721F25 #25721F
tetradic
#1F2572 #721F4E #726C1F #1F7242
square
#1F2572 #721F4E #726C1F #1F7242
split-complementary
#1F2572 #72421F #4E721F
monochromatic
#070818 #121542 #1F2572 #2C35A2 #404ACB

Accessibility & contrast

On white

13.41
#1F2572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F2572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2572
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2572#FFFFFF#000000##FFFFFF
##1F25721.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2572;
/* rgb */ color: rgb(31, 37, 114);
/* oklch */ color: oklch(31.5% 0.130 272.8);
Tailwind
colors: {
  custom: {
    50: '#675f9b',
    500: '#1f2572',
    950: '#000000',
  },
}
SCSS
$custom: #1f2572;
$custom-light: #675f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2572",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 235.663,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31494,
    "c": 0.13046,
    "h": 272.8
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#1F2572
secondary
#A69F47
accent
#D547E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2572

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

Preview Lab → · Contrast checker → · Palette generator →

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