#1F136B#1F136B

#1F136B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.142 H 278.0°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#1F136B
RGBrgb(31, 19, 107)
HSLhsl(248, 70%, 25%)
HSVhsv(248, 82%, 42%)
CMYKcmyk(71%, 82.2%, 0%, 58%)
CIE-LABlab(14.50, 34.09, -48.54)
CIE-LCHlch(14.50, 59.31, 305.08°)
OKLaboklab(27.8% 0.0198 -0.1402)
OKLCHoklch(27.8% 0.142 278)
XYZxyz(3.4509, 1.8183, 14.0762)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F136B #5F6B13
analogous
#13336B #1F136B #4B136B
triadic
#1F136B #6B1F13 #136B1F
tetradic
#1F136B #6B1333 #5F6B13 #136B4B
square
#1F136B #6B1333 #5F6B13 #136B4B
split-complementary
#1F136B #6B4B13 #336B13
monochromatic
#08051A #100A37 #1F136B #2E1C9F #3D25D3

Accessibility & contrast

On white

15.40
#1F136B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1F136B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F136B
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F136B#FFFFFF#000000##FFFFFF
##1F136B1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286D
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f136b;
/* rgb */ color: rgb(31, 19, 107);
/* oklch */ color: oklch(27.8% 0.142 278.0);
Tailwind
colors: {
  custom: {
    50: '#685396',
    500: '#1f136b',
    950: '#000000',
  },
}
SCSS
$custom: #1f136b;
$custom-light: #685396;
$custom-dark: #000000;
JSON
{
  "hex": "#1f136b",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 107
  },
  "hsl": {
    "h": 248.182,
    "s": 69.841,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27804,
    "c": 0.14161,
    "h": 278
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#1F136B
secondary
#94A238
accent
#ED3BD4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F136B

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

Preview Lab → · Contrast checker → · Palette generator →

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