#1F1076#1F1076

#1F1076 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.158 H 276.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#1F1076
RGBrgb(31, 16, 118)
HSLhsl(249, 76%, 26%)
HSVhsv(249, 86%, 46%)
CMYKcmyk(73.7%, 86.4%, 0%, 53.7%)
CIE-LABlab(15.33, 39.17, -54.32)
CIE-LCHlch(15.33, 66.97, 305.79°)
OKLaboklab(28.77% 0.0178 -0.157)
OKLCHoklch(28.77% 0.158 276.5)
XYZxyz(4.0193, 1.9695, 17.3044)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1076 #677610
analogous
#103476 #1F1076 #521076
triadic
#1F1076 #761F10 #10761F
tetradic
#1F1076 #761034 #677610 #107652
square
#1F1076 #761034 #677610 #107652
split-complementary
#1F1076 #765210 #347610
monochromatic
#07041B #110940 #1F1076 #2D17AC #3C20E1

Accessibility & contrast

On white

15.06
#1F1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1076
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1076#FFFFFF#000000##FFFFFF
##1F10761.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002274
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1076;
/* rgb */ color: rgb(31, 16, 118);
/* oklch */ color: oklch(28.8% 0.158 276.5);
Tailwind
colors: {
  custom: {
    50: '#6b529f',
    500: '#1f1076',
    950: '#000000',
  },
}
SCSS
$custom: #1f1076;
$custom-light: #6b529f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1076",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 248.824,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28767,
    "c": 0.15798,
    "h": 276.5
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#1F1076
secondary
#9BAD35
accent
#F335D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020F
muted
#7A787E

Preview Lab

Preview with #1F1076

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

Preview Lab → · Contrast checker → · Palette generator →

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