#1F36B4#1F36B4

#1F36B4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.2% C 0.198 H 267.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#1F36B4
RGBrgb(31, 54, 180)
HSLhsl(231, 71%, 41%)
HSVhsv(231, 83%, 71%)
CMYKcmyk(82.8%, 70%, 0%, 29.4%)
CIE-LABlab(29.97, 38.83, -68.42)
CIE-LCHlch(29.97, 78.68, 299.58°)
OKLaboklab(41.19% -0.0086 -0.1983)
OKLCHoklch(41.19% 0.198 267.5)
XYZxyz(10.1196, 6.2237, 43.8391)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F36B4 #B49D1F
analogous
#1F81B4 #1F36B4 #531FB4
triadic
#1F36B4 #B41F36 #36B41F
tetradic
#1F36B4 #B41F81 #B49D1F #1FB453
square
#1F36B4 #B41F81 #B49D1F #1FB453
split-complementary
#1F36B4 #B4531F #81B41F
monochromatic
#0D174C #162680 #1F36B4 #344EDC #687CE5

Accessibility & contrast

On white

9.35
#1F36B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F36B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F36B4
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F36B4#FFFFFF#000000##FFFFFF
##1F36B41.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f36b4;
/* rgb */ color: rgb(31, 54, 180);
/* oklch */ color: oklch(41.2% 0.198 267.5);
Tailwind
colors: {
  custom: {
    50: '#776dcc',
    500: '#1f36b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f36b4;
$custom-light: #776dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f36b4",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 180
  },
  "hsl": {
    "h": 230.738,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41192,
    "c": 0.19849,
    "h": 267.5
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#1F36B4
secondary
#CBBB64
accent
#D23AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #1F36B4

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

Preview Lab → · Contrast checker → · Palette generator →

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