#1F1966#1F1966

#1F1966 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.128 H 277.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#1F1966
RGBrgb(31, 25, 102)
HSLhsl(245, 61%, 25%)
HSVhsv(245, 75%, 40%)
CMYKcmyk(69.6%, 75.5%, 0%, 60%)
CIE-LABlab(15.20, 28.80, -44.10)
CIE-LCHlch(15.20, 52.68, 303.15°)
OKLaboklab(28.13% 0.0171 -0.1273)
OKLCHoklch(28.13% 0.128 277.7)
XYZxyz(3.3102, 1.9456, 12.7689)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1966 #606619
analogous
#193A66 #1F1966 #451966
triadic
#1F1966 #661F19 #19661F
tetradic
#1F1966 #66193A #606619 #196645
square
#1F1966 #66193A #606619 #196645
split-complementary
#1F1966 #664519 #3A6619
monochromatic
#070619 #100D35 #1F1966 #2E2597 #3D31C8

Accessibility & contrast

On white

15.12
#1F1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1966
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1966#FFFFFF#000000##FFFFFF
##1F19661.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#002E3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1966;
/* rgb */ color: rgb(31, 25, 102);
/* oklch */ color: oklch(28.1% 0.128 277.7);
Tailwind
colors: {
  custom: {
    50: '#665792',
    500: '#1f1966',
    950: '#000000',
  },
}
SCSS
$custom: #1f1966;
$custom-light: #665792;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1966",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 244.675,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28129,
    "c": 0.12849,
    "h": 277.7
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#1F1966
secondary
#959C3F
accent
#E444D7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1F1966

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

Preview Lab → · Contrast checker → · Palette generator →

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