#1F36A5#1F36A5

#1F36A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.179 H 267.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#1F36A5
RGBrgb(31, 54, 165)
HSLhsl(230, 68%, 38%)
HSVhsv(230, 81%, 65%)
CMYKcmyk(81.2%, 67.3%, 0%, 35.3%)
CIE-LABlab(28.50, 33.30, -61.86)
CIE-LCHlch(28.50, 70.25, 298.29°)
OKLaboklab(39.68% -0.0075 -0.1791)
OKLCHoklch(39.68% 0.179 267.6)
XYZxyz(8.6734, 5.6452, 36.2225)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F36A5 #A58E1F
analogous
#1F79A5 #1F36A5 #4B1FA5
triadic
#1F36A5 #A51F36 #36A51F
tetradic
#1F36A5 #A51F79 #A58E1F #1FA54B
square
#1F36A5 #A51F79 #A58E1F #1FA54B
split-complementary
#1F36A5 #A54B1F #79A51F
monochromatic
#0C143E #152571 #1F36A5 #2A48D7 #5E74E1

Accessibility & contrast

On white

9.86
#1F36A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F36A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F36A5
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F36A5#FFFFFF#000000##FFFFFF
##1F36A51.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f36a5;
/* rgb */ color: rgb(31, 54, 165);
/* oklch */ color: oklch(39.7% 0.179 267.6);
Tailwind
colors: {
  custom: {
    50: '#736dc1',
    500: '#1f36a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f36a5;
$custom-light: #736dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f36a5",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 229.701,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.17931,
    "h": 267.6
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#1F36A5
secondary
#C5B35B
accent
#CD3DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F36A5

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

Preview Lab → · Contrast checker → · Palette generator →

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