#1F135C#1F135C

#1F135C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.122 H 281.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#1F135C
RGBrgb(31, 19, 92)
HSLhsl(250, 66%, 22%)
HSVhsv(250, 79%, 36%)
CMYKcmyk(66.3%, 79.3%, 0%, 63.9%)
CIE-LABlab(12.79, 28.99, -41.41)
CIE-LCHlch(12.79, 50.55, 305.00°)
OKLaboklab(26.1% 0.024 -0.1194)
OKLCHoklch(26.1% 0.122 281.3)
XYZxyz(2.7291, 1.5296, 10.2746)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F135C #505C13
analogous
#132C5C #1F135C #44135C
triadic
#1F135C #5C1F13 #135C1F
tetradic
#1F135C #5C132C #505C13 #135C44
square
#1F135C #5C132C #505C13 #135C44
split-complementary
#1F135C #5C4413 #2C5C13
monochromatic
#090519 #0E0929 #1F135C #301D8F #4128C1

Accessibility & contrast

On white

16.08
#1F135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F135C
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F135C#FFFFFF#000000##FFFFFF
##1F135C1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001E5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f135c;
/* rgb */ color: rgb(31, 19, 92);
/* oklch */ color: oklch(26.1% 0.122 281.3);
Tailwind
colors: {
  custom: {
    50: '#64528b',
    500: '#1f135c',
    950: '#000000',
  },
}
SCSS
$custom: #1f135c;
$custom-light: #64528b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f135c",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 249.863,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26095,
    "c": 0.12181,
    "h": 281.3
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F135C

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

Preview Lab → · Contrast checker → · Palette generator →

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