#1F136F#1F136F

#1F136F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.147 H 277.3°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#1F136F
RGBrgb(31, 19, 111)
HSLhsl(248, 71%, 25%)
HSVhsv(248, 83%, 44%)
CMYKcmyk(72.1%, 82.9%, 0%, 56.5%)
CIE-LABlab(14.98, 35.42, -50.36)
CIE-LCHlch(14.98, 61.57, 305.12°)
OKLaboklab(28.28% 0.0186 -0.1455)
OKLCHoklch(28.28% 0.147 277.3)
XYZxyz(3.6663, 1.9044, 15.2102)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F136F #636F13
analogous
#13356F #1F136F #4D136F
triadic
#1F136F #6F1F13 #136F1F
tetradic
#1F136F #6F1335 #636F13 #136F4D
square
#1F136F #6F1335 #636F13 #136F4D
split-complementary
#1F136F #6F4D13 #356F13
monochromatic
#07041A #100A3B #1F136F #2E1CA3 #3C25D8

Accessibility & contrast

On white

15.21
#1F136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F136F
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F136F#FFFFFF#000000##FFFFFF
##1F136F1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f136f;
/* rgb */ color: rgb(31, 19, 111);
/* oklch */ color: oklch(28.3% 0.147 277.3);
Tailwind
colors: {
  custom: {
    50: '#695399',
    500: '#1f136f',
    950: '#000000',
  },
}
SCSS
$custom: #1f136f;
$custom-light: #695399;
$custom-dark: #000000;
JSON
{
  "hex": "#1f136f",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 247.826,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28275,
    "c": 0.14672,
    "h": 277.3
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#1F136F
secondary
#98A638
accent
#EE3AD6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F136F

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

Preview Lab → · Contrast checker → · Palette generator →

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