#1F1872#1F1872

#1F1872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.146 H 276.0°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#1F1872
RGBrgb(31, 24, 114)
HSLhsl(245, 65%, 27%)
HSVhsv(245, 79%, 45%)
CMYKcmyk(72.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(16.30, 33.64, -50.13)
CIE-LCHlch(16.30, 60.37, 303.87°)
OKLaboklab(29.31% 0.0152 -0.1449)
OKLCHoklch(29.31% 0.146 276)
XYZxyz(3.9280, 2.1591, 16.1261)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1872 #6B7218
analogous
#183E72 #1F1872 #4C1872
triadic
#1F1872 #721F18 #18721F
tetradic
#1F1872 #72183E #6B7218 #18724C
square
#1F1872 #72183E #6B7218 #18724C
split-complementary
#1F1872 #724C18 #3E7218
monochromatic
#070519 #110D3F #1F1872 #2D23A5 #3D31D4

Accessibility & contrast

On white

14.67
#1F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1872
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1872#FFFFFF#000000##FFFFFF
##1F18721.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1872;
/* rgb */ color: rgb(31, 24, 114);
/* oklch */ color: oklch(29.3% 0.146 276.0);
Tailwind
colors: {
  custom: {
    50: '#69579c',
    500: '#1f1872',
    950: '#000000',
  },
}
SCSS
$custom: #1f1872;
$custom-light: #69579c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1872",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 244.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29306,
    "c": 0.14569,
    "h": 276
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#1F1872
secondary
#9FA73E
accent
#E840DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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