#1F1678#1F1678

#1F1678 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.155 H 275.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#1F1678
RGBrgb(31, 22, 120)
HSLhsl(246, 69%, 28%)
HSVhsv(246, 82%, 47%)
CMYKcmyk(74.2%, 81.7%, 0%, 52.9%)
CIE-LABlab(16.61, 36.80, -53.49)
CIE-LCHlch(16.61, 64.93, 304.53°)
OKLaboklab(29.73% 0.0147 -0.1547)
OKLCHoklch(29.73% 0.155 275.4)
XYZxyz(4.2410, 2.2208, 17.9708)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1678 #6F7816
analogous
#163E78 #1F1678 #501678
triadic
#1F1678 #781F16 #16781F
tetradic
#1F1678 #78163E #6F7816 #167850
square
#1F1678 #78163E #6F7816 #167850
split-complementary
#1F1678 #785016 #3E7816
monochromatic
#07051A #120D44 #1F1678 #2C1FAC #3F2FD9

Accessibility & contrast

On white

14.54
#1F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1678
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1678#FFFFFF#000000##FFFFFF
##1F16781.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1678;
/* rgb */ color: rgb(31, 22, 120);
/* oklch */ color: oklch(29.7% 0.155 275.4);
Tailwind
colors: {
  custom: {
    50: '#6a56a0',
    500: '#1f1678',
    950: '#000000',
  },
}
SCSS
$custom: #1f1678;
$custom-light: #6a56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1678",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 245.51,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29726,
    "c": 0.15535,
    "h": 275.4
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#1F1678
secondary
#A3AD3C
accent
#EC3CDC
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1678

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

Preview Lab → · Contrast checker → · Palette generator →

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