#1F3DA0#1F3DA0

#1F3DA0 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.164 H 266.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#1F3DA0
RGBrgb(31, 61, 160)
HSLhsl(226, 68%, 37%)
HSVhsv(226, 81%, 63%)
CMYKcmyk(80.6%, 61.9%, 0%, 37.3%)
CIE-LABlab(29.83, 26.74, -56.66)
CIE-LCHlch(29.83, 62.65, 295.26°)
OKLaboklab(40.52% -0.0113 -0.1639)
OKLCHoklch(40.52% 0.164 266.1)
XYZxyz(8.5767, 6.1659, 33.9890)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3DA0 #A0821F
analogous
#1F7DA0 #1F3DA0 #421FA0
triadic
#1F3DA0 #A01F3D #3DA01F
tetradic
#1F3DA0 #A01F7D #A0821F #1FA042
square
#1F3DA0 #A01F7D #A0821F #1FA042
split-complementary
#1F3DA0 #A0421F #7DA01F
monochromatic
#0B1639 #15296D #1F3DA0 #2951D3 #5A79DF

Accessibility & contrast

On white

9.40
#1F3DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3DA0
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3DA0#FFFFFF#000000##FFFFFF
##1F3DA01.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3da0;
/* rgb */ color: rgb(31, 61, 160);
/* oklch */ color: oklch(40.5% 0.164 266.1);
Tailwind
colors: {
  custom: {
    50: '#7172bd',
    500: '#1f3da0',
    950: '#000000',
  },
}
SCSS
$custom: #1f3da0;
$custom-light: #7172bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3da0",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 160
  },
  "hsl": {
    "h": 226.047,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.16426,
    "h": 266.1
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#1F3DA0
secondary
#C3AA58
accent
#C23DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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