#1F135F#1F135F

#1F135F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.126 H 280.6°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#1F135F
RGBrgb(31, 19, 95)
HSLhsl(249, 67%, 22%)
HSVhsv(249, 80%, 37%)
CMYKcmyk(67.4%, 80%, 0%, 62.7%)
CIE-LABlab(13.13, 30.02, -42.87)
CIE-LCHlch(13.13, 52.34, 305.00°)
OKLaboklab(26.43% 0.0232 -0.1237)
OKLCHoklch(26.43% 0.126 280.6)
XYZxyz(2.8629, 1.5831, 10.9790)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F135F #535F13
analogous
#132D5F #1F135F #45135F
triadic
#1F135F #5F1F13 #135F1F
tetradic
#1F135F #5F132D #535F13 #135F45
square
#1F135F #5F132D #535F13 #135F45
split-complementary
#1F135F #5F4513 #2D5F13
monochromatic
#08051A #0E092C #1F135F #301D92 #4027C5

Accessibility & contrast

On white

15.95
#1F135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F135F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F135F#FFFFFF#000000##FFFFFF
##1F135F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f135f;
/* rgb */ color: rgb(31, 19, 95);
/* oklch */ color: oklch(26.4% 0.126 280.6);
Tailwind
colors: {
  custom: {
    50: '#65528d',
    500: '#1f135f',
    950: '#000000',
  },
}
SCSS
$custom: #1f135f;
$custom-light: #65528d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f135f",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 249.474,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26429,
    "c": 0.12585,
    "h": 280.6
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#1F135F
secondary
#889737
accent
#EA3ECF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F135F

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

Preview Lab → · Contrast checker → · Palette generator →

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