#1F1267#1F1267

#1F1267 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.2% C 0.137 H 279.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#1F1267
RGBrgb(31, 18, 103)
HSLhsl(249, 70%, 24%)
HSVhsv(249, 83%, 40%)
CMYKcmyk(69.9%, 82.5%, 0%, 59.6%)
CIE-LABlab(13.84, 33.30, -47.00)
CIE-LCHlch(13.84, 57.60, 305.32°)
OKLaboklab(27.21% 0.0216 -0.1357)
OKLCHoklch(27.21% 0.137 279)
XYZxyz(3.2288, 1.7029, 12.9879)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1267 #5A6712
analogous
#122F67 #1F1267 #491267
triadic
#1F1267 #671F12 #12671F
tetradic
#1F1267 #67122F #5A6712 #126749
square
#1F1267 #67122F #5A6712 #126749
split-complementary
#1F1267 #674912 #2F6712
monochromatic
#08051A #0F0933 #1F1267 #2F1B9B #3E24CF

Accessibility & contrast

On white

15.66
#1F1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1267
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1267#FFFFFF#000000##FFFFFF
##1F12671.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002669
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f1267;
/* rgb */ color: rgb(31, 18, 103);
/* oklch */ color: oklch(27.2% 0.137 279.0);
Tailwind
colors: {
  custom: {
    50: '#675293',
    500: '#1f1267',
    950: '#000000',
  },
}
SCSS
$custom: #1f1267;
$custom-light: #675293;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1267",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 249.176,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27205,
    "c": 0.13742,
    "h": 279
  },
  "luminance": 0.01703
}

Semantic roles & 50–950 ramp

primary
#1F1267
secondary
#8F9F36
accent
#ED3BD2
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1267

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

Preview Lab → · Contrast checker → · Palette generator →

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