#1F1272#1F1272

#1F1272 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.151 H 276.9°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#1F1272
RGBrgb(31, 18, 114)
HSLhsl(248, 73%, 26%)
HSVhsv(248, 84%, 45%)
CMYKcmyk(72.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.16, 36.92, -52.01)
CIE-LCHlch(15.16, 63.78, 305.37°)
OKLaboklab(28.51% 0.0182 -0.1503)
OKLCHoklch(28.51% 0.151 276.9)
XYZxyz(3.8177, 1.9385, 16.0893)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1272 #657212
analogous
#123572 #1F1272 #4F1272
triadic
#1F1272 #721F12 #12721F
tetradic
#1F1272 #721235 #657212 #12724F
square
#1F1272 #721235 #657212 #12724F
split-complementary
#1F1272 #724F12 #357212
monochromatic
#07041A #110A3D #1F1272 #2D1AA7 #3C23DC

Accessibility & contrast

On white

15.13
#1F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1272
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1272#FFFFFF#000000##FFFFFF
##1F12721.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1272;
/* rgb */ color: rgb(31, 18, 114);
/* oklch */ color: oklch(28.5% 0.151 276.9);
Tailwind
colors: {
  custom: {
    50: '#69539c',
    500: '#1f1272',
    950: '#000000',
  },
}
SCSS
$custom: #1f1272;
$custom-light: #69539c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1272",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 248.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28509,
    "c": 0.1514,
    "h": 276.9
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#1F1272
secondary
#99A937
accent
#EF38D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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