#1F1668#1F1668

#1F1668 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.135 H 278.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#1F1668
RGBrgb(31, 22, 104)
HSLhsl(247, 65%, 25%)
HSVhsv(247, 79%, 41%)
CMYKcmyk(70.2%, 78.8%, 0%, 59.2%)
CIE-LABlab(14.76, 31.35, -46.15)
CIE-LCHlch(14.76, 55.79, 304.19°)
OKLaboklab(27.88% 0.0188 -0.1333)
OKLCHoklch(27.88% 0.135 278)
XYZxyz(3.3499, 1.8643, 13.2773)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1668 #5F6816
analogous
#163668 #1F1668 #481668
triadic
#1F1668 #681F16 #16681F
tetradic
#1F1668 #681636 #5F6816 #166848
square
#1F1668 #681636 #5F6816 #166848
split-complementary
#1F1668 #684816 #366816
monochromatic
#080519 #100B35 #1F1668 #2E219B #3D2BCD

Accessibility & contrast

On white

15.29
#1F1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1668
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1668#FFFFFF#000000##FFFFFF
##1F16681.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002267
Tritanopia (blue-blind)
#002E3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f1668;
/* rgb */ color: rgb(31, 22, 104);
/* oklch */ color: oklch(27.9% 0.135 278.0);
Tailwind
colors: {
  custom: {
    50: '#665594',
    500: '#1f1668',
    950: '#000000',
  },
}
SCSS
$custom: #1f1668;
$custom-light: #665594;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1668",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 246.585,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27881,
    "c": 0.1346,
    "h": 278
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#1F1668
secondary
#949F3B
accent
#E840D6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F1668

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

Preview Lab → · Contrast checker → · Palette generator →

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