#1F1963#1F1963

#1F1963 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.124 H 278.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#1F1963
RGBrgb(31, 25, 99)
HSLhsl(245, 60%, 24%)
HSVhsv(245, 75%, 39%)
CMYKcmyk(68.7%, 74.7%, 0%, 61.2%)
CIE-LABlab(14.88, 27.73, -42.64)
CIE-LCHlch(14.88, 50.86, 303.03°)
OKLaboklab(27.81% 0.0177 -0.1231)
OKLCHoklch(27.81% 0.124 278.2)
XYZxyz(3.1641, 1.8872, 11.9995)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1963 #5D6319
analogous
#193863 #1F1963 #441963
triadic
#1F1963 #631F19 #19631F
tetradic
#1F1963 #631938 #5D6319 #196344
square
#1F1963 #631938 #5D6319 #196344
split-complementary
#1F1963 #634419 #386319
monochromatic
#080618 #100D32 #1F1963 #2E2594 #3E32C5

Accessibility & contrast

On white

15.25
#1F1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1963 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1963
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1963#FFFFFF#000000##FFFFFF
##1F19631.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#002D3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f1963;
/* rgb */ color: rgb(31, 25, 99);
/* oklch */ color: oklch(27.8% 0.124 278.2);
Tailwind
colors: {
  custom: {
    50: '#655690',
    500: '#1f1963',
    950: '#000000',
  },
}
SCSS
$custom: #1f1963;
$custom-light: #655690;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1963",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 244.865,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27807,
    "c": 0.12433,
    "h": 278.2
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#1F1963
secondary
#92993F
accent
#E345D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #1F1963

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

Preview Lab → · Contrast checker → · Palette generator →

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