#1F1276#1F1276

#1F1276 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.0% C 0.156 H 276.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#1F1276
RGBrgb(31, 18, 118)
HSLhsl(248, 74%, 27%)
HSVhsv(248, 85%, 46%)
CMYKcmyk(73.7%, 84.7%, 0%, 53.7%)
CIE-LABlab(15.65, 38.21, -53.78)
CIE-LCHlch(15.65, 65.98, 305.39°)
OKLaboklab(28.99% 0.017 -0.1554)
OKLCHoklch(28.99% 0.156 276.2)
XYZxyz(4.0503, 2.0315, 17.3147)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1276 #697612
analogous
#123776 #1F1276 #511276
triadic
#1F1276 #761F12 #12761F
tetradic
#1F1276 #761237 #697612 #127651
square
#1F1276 #761237 #697612 #127651
split-complementary
#1F1276 #765112 #377612
monochromatic
#07041B #110A41 #1F1276 #2D1AAB #3D25DE

Accessibility & contrast

On white

14.93
#1F1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1276
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1276#FFFFFF#000000##FFFFFF
##1F12761.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1276;
/* rgb */ color: rgb(31, 18, 118);
/* oklch */ color: oklch(29.0% 0.156 276.2);
Tailwind
colors: {
  custom: {
    50: '#6a539f',
    500: '#1f1276',
    950: '#000000',
  },
}
SCSS
$custom: #1f1276;
$custom-light: #6a539f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1276",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 247.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.15637,
    "h": 276.2
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

primary
#1F1276
secondary
#9DAD37
accent
#F038D8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1276

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

Preview Lab → · Contrast checker → · Palette generator →

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