#1F1172#1F1172

#1F1172 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.152 H 277.0°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#1F1172
RGBrgb(31, 17, 114)
HSLhsl(249, 74%, 26%)
HSVhsv(249, 85%, 45%)
CMYKcmyk(72.8%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.99, 37.42, -52.29)
CIE-LCHlch(14.99, 64.30, 305.59°)
OKLaboklab(28.39% 0.0187 -0.1511)
OKLCHoklch(28.39% 0.152 277)
XYZxyz(3.8018, 1.9068, 16.0840)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1172 #647211
analogous
#113372 #1F1172 #4F1172
triadic
#1F1172 #721F11 #11721F
tetradic
#1F1172 #721133 #647211 #11724F
square
#1F1172 #721133 #647211 #11724F
split-complementary
#1F1172 #724F11 #337211
monochromatic
#07041B #11093D #1F1172 #2D19A7 #3C21DD

Accessibility & contrast

On white

15.20
#1F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1172
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1172#FFFFFF#000000##FFFFFF
##1F11721.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1172;
/* rgb */ color: rgb(31, 17, 114);
/* oklch */ color: oklch(28.4% 0.152 277.0);
Tailwind
colors: {
  custom: {
    50: '#69539c',
    500: '#1f1172',
    950: '#000000',
  },
}
SCSS
$custom: #1f1172;
$custom-light: #69539c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1172",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 248.66,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2839,
    "c": 0.15226,
    "h": 277
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#1F1172
secondary
#98A936
accent
#F137D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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