#1F1677#1F1677

#1F1677 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.154 H 275.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#1F1677
RGBrgb(31, 22, 119)
HSLhsl(246, 69%, 28%)
HSVhsv(246, 82%, 47%)
CMYKcmyk(73.9%, 81.5%, 0%, 53.3%)
CIE-LABlab(16.49, 36.47, -53.04)
CIE-LCHlch(16.49, 64.37, 304.51°)
OKLaboklab(29.61% 0.0149 -0.1534)
OKLCHoklch(29.61% 0.154 275.6)
XYZxyz(4.1807, 2.1966, 17.6529)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1677 #6E7716
analogous
#163D77 #1F1677 #4F1677
triadic
#1F1677 #771F16 #16771F
tetradic
#1F1677 #77163D #6E7716 #16774F
square
#1F1677 #77163D #6E7716 #16774F
split-complementary
#1F1677 #774F16 #3D7716
monochromatic
#07051A #120C43 #1F1677 #2C20AB #3F2FD9

Accessibility & contrast

On white

14.59
#1F1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1677
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1677#FFFFFF#000000##FFFFFF
##1F16771.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1677;
/* rgb */ color: rgb(31, 22, 119);
/* oklch */ color: oklch(29.6% 0.154 275.6);
Tailwind
colors: {
  custom: {
    50: '#6a569f',
    500: '#1f1677',
    950: '#000000',
  },
}
SCSS
$custom: #1f1677;
$custom-light: #6a569f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1677",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 245.567,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29608,
    "c": 0.15408,
    "h": 275.6
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#1F1677
secondary
#A2AC3C
accent
#EC3CDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E

Preview Lab

Preview with #1F1677

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

Preview Lab → · Contrast checker → · Palette generator →

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