#1F1670#1F1670

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

Color values

HEX#1F1670
RGBrgb(31, 22, 112)
HSLhsl(246, 67%, 26%)
HSVhsv(246, 80%, 44%)
CMYKcmyk(72.3%, 80.4%, 0%, 56.1%)
CIE-LABlab(15.67, 34.11, -49.87)
CIE-LCHlch(15.67, 60.42, 304.37°)
OKLaboklab(28.79% 0.0168 -0.1441)
OKLCHoklch(28.79% 0.145 276.6)
XYZxyz(3.7757, 2.0346, 15.5198)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1670 #677016
analogous
#163A70 #1F1670 #4C1670
triadic
#1F1670 #701F16 #16701F
tetradic
#1F1670 #70163A #677016 #16704C
square
#1F1670 #70163A #677016 #16704C
split-complementary
#1F1670 #704C16 #3A7016
monochromatic
#07051A #110C3D #1F1670 #2D20A3 #3C2BD5

Accessibility & contrast

On white

14.93
#1F1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1670
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1670#FFFFFF#000000##FFFFFF
##1F16701.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1670;
/* rgb */ color: rgb(31, 22, 112);
/* oklch */ color: oklch(28.8% 0.145 276.6);
Tailwind
colors: {
  custom: {
    50: '#68559a',
    500: '#1f1670',
    950: '#000000',
  },
}
SCSS
$custom: #1f1670;
$custom-light: #68559a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1670",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 246,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28792,
    "c": 0.14511,
    "h": 276.6
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#1F1670
secondary
#9BA63C
accent
#EA3ED9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1670

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

Preview Lab → · Contrast checker → · Palette generator →

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