#1F1361#1F1361

#1F1361 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.7% C 0.129 H 280.1°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#1F1361
RGBrgb(31, 19, 97)
HSLhsl(249, 67%, 23%)
HSVhsv(249, 80%, 38%)
CMYKcmyk(68%, 80.4%, 0%, 62%)
CIE-LABlab(13.35, 30.71, -43.83)
CIE-LCHlch(13.35, 53.52, 305.01°)
OKLaboklab(26.65% 0.0226 -0.1265)
OKLCHoklch(26.65% 0.129 280.1)
XYZxyz(2.9549, 1.6199, 11.4639)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1361 #556113
analogous
#132E61 #1F1361 #461361
triadic
#1F1361 #611F13 #13611F
tetradic
#1F1361 #61132E #556113 #136146
square
#1F1361 #61132E #556113 #136146
split-complementary
#1F1361 #614613 #2E6113
monochromatic
#08051A #0F092E #1F1361 #2F1D94 #4027C7

Accessibility & contrast

On white

15.86
#1F1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1361
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1361#FFFFFF#000000##FFFFFF
##1F13611.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002563
Deuteranopia (green-blind)
#001F60
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1361;
/* rgb */ color: rgb(31, 19, 97);
/* oklch */ color: oklch(26.7% 0.129 280.1);
Tailwind
colors: {
  custom: {
    50: '#65538f',
    500: '#1f1361',
    950: '#000000',
  },
}
SCSS
$custom: #1f1361;
$custom-light: #65538f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1361",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 249.231,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26654,
    "c": 0.12853,
    "h": 280.1
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#1F1361
secondary
#8A9937
accent
#EA3ED0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F1361

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

Preview Lab → · Contrast checker → · Palette generator →

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