#1F135E#1F135E

#1F135E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.125 H 280.9°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#1F135E
RGBrgb(31, 19, 94)
HSLhsl(250, 66%, 22%)
HSVhsv(250, 80%, 37%)
CMYKcmyk(67%, 79.8%, 0%, 63.1%)
CIE-LABlab(13.02, 29.68, -42.38)
CIE-LCHlch(13.02, 51.74, 305.00°)
OKLaboklab(26.32% 0.0234 -0.1223)
OKLCHoklch(26.32% 0.125 280.9)
XYZxyz(2.8177, 1.5650, 10.7411)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F135E #525E13
analogous
#132D5E #1F135E #45135E
triadic
#1F135E #5E1F13 #135E1F
tetradic
#1F135E #5E132D #525E13 #135E45
square
#1F135E #5E132D #525E13 #135E45
split-complementary
#1F135E #5E4513 #2D5E13
monochromatic
#080519 #0E092B #1F135E #301D91 #4128C4

Accessibility & contrast

On white

15.99
#1F135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F135E
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F135E#FFFFFF#000000##FFFFFF
##1F135E1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f135e;
/* rgb */ color: rgb(31, 19, 94);
/* oklch */ color: oklch(26.3% 0.125 280.9);
Tailwind
colors: {
  custom: {
    50: '#64528d',
    500: '#1f135e',
    950: '#000000',
  },
}
SCSS
$custom: #1f135e;
$custom-light: #64528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f135e",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 249.6,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26317,
    "c": 0.12451,
    "h": 280.9
  },
  "luminance": 0.01565
}

Semantic roles & 50–950 ramp

primary
#1F135E
secondary
#879637
accent
#E93FCE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F135E

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

Preview Lab → · Contrast checker → · Palette generator →

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