#1F136C#1F136C

#1F136C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.143 H 277.8°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#1F136C
RGBrgb(31, 19, 108)
HSLhsl(248, 70%, 25%)
HSVhsv(248, 82%, 42%)
CMYKcmyk(71.3%, 82.4%, 0%, 57.6%)
CIE-LABlab(14.62, 34.42, -49.00)
CIE-LCHlch(14.62, 59.88, 305.09°)
OKLaboklab(27.92% 0.0195 -0.1415)
OKLCHoklch(27.92% 0.143 277.8)
XYZxyz(3.5038, 1.8395, 14.3549)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F136C #606C13
analogous
#13336C #1F136C #4C136C
triadic
#1F136C #6C1F13 #136C1F
tetradic
#1F136C #6C1333 #606C13 #136C4C
square
#1F136C #6C1333 #606C13 #136C4C
split-complementary
#1F136C #6C4C13 #336C13
monochromatic
#07051A #100A38 #1F136C #2E1CA0 #3D25D4

Accessibility & contrast

On white

15.35
#1F136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F136C
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F136C#FFFFFF#000000##FFFFFF
##1F136C1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f136c;
/* rgb */ color: rgb(31, 19, 108);
/* oklch */ color: oklch(27.9% 0.143 277.8);
Tailwind
colors: {
  custom: {
    50: '#685397',
    500: '#1f136c',
    950: '#000000',
  },
}
SCSS
$custom: #1f136c;
$custom-light: #685397;
$custom-dark: #000000;
JSON
{
  "hex": "#1f136c",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 248.09,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27922,
    "c": 0.14289,
    "h": 277.8
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#1F136C
secondary
#95A338
accent
#ED3BD5
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F136C

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

Preview Lab → · Contrast checker → · Palette generator →

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