#1F1B60#1F1B60

#1F1B60 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.8% C 0.118 H 278.1°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#1F1B60
RGBrgb(31, 27, 96)
HSLhsl(243, 56%, 24%)
HSVhsv(243, 72%, 38%)
CMYKcmyk(67.7%, 71.9%, 0%, 62.4%)
CIE-LABlab(15.06, 25.32, -40.36)
CIE-LCHlch(15.06, 47.65, 302.10°)
OKLaboklab(27.84% 0.0166 -0.1164)
OKLCHoklch(27.84% 0.118 278.1)
XYZxyz(3.0676, 1.9195, 11.2729)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B60 #5C601B
analogous
#1B3A60 #1F1B60 #421B60
triadic
#1F1B60 #601F1B #1B601F
tetradic
#1F1B60 #601B3A #5C601B #1B6042
square
#1F1B60 #601B3A #5C601B #1B6042
split-complementary
#1F1B60 #60421B #3A601B
monochromatic
#080718 #100E30 #1F1B60 #2E2890 #3E36C0

Accessibility & contrast

On white

15.17
#1F1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1B60
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B60#FFFFFF#000000##FFFFFF
##1F1B601.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1b60;
/* rgb */ color: rgb(31, 27, 96);
/* oklch */ color: oklch(27.8% 0.118 278.1);
Tailwind
colors: {
  custom: {
    50: '#64588e',
    500: '#1f1b60',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b60;
$custom-light: #64588e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b60",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 243.478,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2784,
    "c": 0.11757,
    "h": 278.1
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#1F1B60
secondary
#919641
accent
#DF48D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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