#1F1676#1F1676

#1F1676 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.153 H 275.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1F1676
RGBrgb(31, 22, 118)
HSLhsl(246, 69%, 27%)
HSVhsv(246, 81%, 46%)
CMYKcmyk(73.7%, 81.4%, 0%, 53.7%)
CIE-LABlab(16.37, 36.13, -52.60)
CIE-LCHlch(16.37, 63.81, 304.49°)
OKLaboklab(29.49% 0.0152 -0.1521)
OKLCHoklch(29.49% 0.153 275.7)
XYZxyz(4.1209, 2.1727, 17.3382)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1676 #6D7616
analogous
#163D76 #1F1676 #4F1676
triadic
#1F1676 #761F16 #16761F
tetradic
#1F1676 #76163D #6D7616 #16764F
square
#1F1676 #76163D #6D7616 #16764F
split-complementary
#1F1676 #764F16 #3D7616
monochromatic
#07051A #110C42 #1F1676 #2D20AA #3E2ED8

Accessibility & contrast

On white

14.64
#1F1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1676
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1676#FFFFFF#000000##FFFFFF
##1F16761.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1676;
/* rgb */ color: rgb(31, 22, 118);
/* oklch */ color: oklch(29.5% 0.153 275.7);
Tailwind
colors: {
  custom: {
    50: '#6a569f',
    500: '#1f1676',
    950: '#000000',
  },
}
SCSS
$custom: #1f1676;
$custom-light: #6a569f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1676",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 245.625,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.2949,
    "c": 0.15282,
    "h": 275.7
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#1F1676
secondary
#A1AC3C
accent
#EB3CDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1F1676

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

Preview Lab → · Contrast checker → · Palette generator →

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