#1F135D#1F135D

#1F135D is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.2% C 0.123 H 281.1°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#1F135D
RGBrgb(31, 19, 93)
HSLhsl(250, 66%, 22%)
HSVhsv(250, 80%, 36%)
CMYKcmyk(66.7%, 79.6%, 0%, 63.5%)
CIE-LABlab(12.90, 29.34, -41.90)
CIE-LCHlch(12.90, 51.15, 305.00°)
OKLaboklab(26.21% 0.0237 -0.1209)
OKLCHoklch(26.21% 0.123 281.1)
XYZxyz(2.7731, 1.5472, 10.5063)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F135D #515D13
analogous
#132C5D #1F135D #44135D
triadic
#1F135D #5D1F13 #135D1F
tetradic
#1F135D #5D132C #515D13 #135D44
square
#1F135D #5D132C #515D13 #135D44
split-complementary
#1F135D #5D4413 #2C5D13
monochromatic
#080519 #0E092A #1F135D #301D90 #4128C3

Accessibility & contrast

On white

16.04
#1F135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F135D
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F135D#FFFFFF#000000##FFFFFF
##1F135D1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f135d;
/* rgb */ color: rgb(31, 19, 93);
/* oklch */ color: oklch(26.2% 0.123 281.1);
Tailwind
colors: {
  custom: {
    50: '#64528c',
    500: '#1f135d',
    950: '#000000',
  },
}
SCSS
$custom: #1f135d;
$custom-light: #64528c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f135d",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 249.73,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26206,
    "c": 0.12316,
    "h": 281.1
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#1F135D
secondary
#869537
accent
#E93FCD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F135D

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

Preview Lab → · Contrast checker → · Palette generator →

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