#1F1967#1F1967

#1F1967 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.130 H 277.5°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1F1967
RGBrgb(31, 25, 103)
HSLhsl(245, 61%, 25%)
HSVhsv(245, 76%, 40%)
CMYKcmyk(69.9%, 75.7%, 0%, 59.6%)
CIE-LABlab(15.31, 29.16, -44.59)
CIE-LCHlch(15.31, 53.28, 303.19°)
OKLaboklab(28.24% 0.0169 -0.1287)
OKLCHoklch(28.24% 0.13 277.5)
XYZxyz(3.3601, 1.9656, 13.0317)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1967 #616719
analogous
#193A67 #1F1967 #461967
triadic
#1F1967 #671F19 #19671F
tetradic
#1F1967 #67193A #616719 #196746
square
#1F1967 #67193A #616719 #196746
split-complementary
#1F1967 #674619 #3A6719
monochromatic
#070619 #100D36 #1F1967 #2E2598 #3D31C9

Accessibility & contrast

On white

15.07
#1F1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1967
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1967#FFFFFF#000000##FFFFFF
##1F19671.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1967;
/* rgb */ color: rgb(31, 25, 103);
/* oklch */ color: oklch(28.2% 0.130 277.5);
Tailwind
colors: {
  custom: {
    50: '#665793',
    500: '#1f1967',
    950: '#000000',
  },
}
SCSS
$custom: #1f1967;
$custom-light: #665793;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1967",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 244.615,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28237,
    "c": 0.12986,
    "h": 277.5
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#1F1967
secondary
#969D3F
accent
#E444D8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1F1967

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

Preview Lab → · Contrast checker → · Palette generator →

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