#1F136D#1F136D

#1F136D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.144 H 277.7°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#1F136D
RGBrgb(31, 19, 109)
HSLhsl(248, 70%, 25%)
HSVhsv(248, 83%, 43%)
CMYKcmyk(71.6%, 82.6%, 0%, 57.3%)
CIE-LABlab(14.74, 34.75, -49.45)
CIE-LCHlch(14.74, 60.44, 305.10°)
OKLaboklab(28.04% 0.0192 -0.1429)
OKLCHoklch(28.04% 0.144 277.7)
XYZxyz(3.5574, 1.8609, 14.6367)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F136D #616D13
analogous
#13346D #1F136D #4C136D
triadic
#1F136D #6D1F13 #136D1F
tetradic
#1F136D #6D1334 #616D13 #136D4C
square
#1F136D #6D1334 #616D13 #136D4C
split-complementary
#1F136D #6D4C13 #346D13
monochromatic
#07051A #100A39 #1F136D #2E1CA1 #3D25D5

Accessibility & contrast

On white

15.30
#1F136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F136D
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F136D#FFFFFF#000000##FFFFFF
##1F136D1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f136d;
/* rgb */ color: rgb(31, 19, 109);
/* oklch */ color: oklch(28.0% 0.144 277.7);
Tailwind
colors: {
  custom: {
    50: '#685398',
    500: '#1f136d',
    950: '#000000',
  },
}
SCSS
$custom: #1f136d;
$custom-light: #685398;
$custom-dark: #000000;
JSON
{
  "hex": "#1f136d",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 248,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28039,
    "c": 0.14418,
    "h": 277.7
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#1F136D
secondary
#96A438
accent
#ED3BD5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F136D

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

Preview Lab → · Contrast checker → · Palette generator →

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