#1F3DA7#1F3DA7

#1F3DA7 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.174 H 266.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#1F3DA7
RGBrgb(31, 61, 167)
HSLhsl(227, 69%, 39%)
HSVhsv(227, 81%, 65%)
CMYKcmyk(81.4%, 63.5%, 0%, 34.5%)
CIE-LABlab(30.44, 29.44, -59.87)
CIE-LCHlch(30.44, 66.72, 296.18°)
OKLaboklab(41.16% -0.0113 -0.1733)
OKLCHoklch(41.16% 0.174 266.3)
XYZxyz(9.2064, 6.4177, 37.3052)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3DA7 #A7891F
analogous
#1F81A7 #1F3DA7 #451FA7
triadic
#1F3DA7 #A71F3D #3DA71F
tetradic
#1F3DA7 #A71F81 #A7891F #1FA745
square
#1F3DA7 #A71F81 #A7891F #1FA745
split-complementary
#1F3DA7 #A7451F #81A71F
monochromatic
#0C1740 #152A73 #1F3DA7 #2B51D8 #5F7CE1

Accessibility & contrast

On white

9.20
#1F3DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F3DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3DA7
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3DA7#FFFFFF#000000##FFFFFF
##1F3DA71.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3da7;
/* rgb */ color: rgb(31, 61, 167);
/* oklch */ color: oklch(41.2% 0.174 266.3);
Tailwind
colors: {
  custom: {
    50: '#7372c2',
    500: '#1f3da7',
    950: '#000000',
  },
}
SCSS
$custom: #1f3da7;
$custom-light: #7372c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3da7",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 226.765,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41164,
    "c": 0.17365,
    "h": 266.3
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#1F3DA7
secondary
#C6AE5C
accent
#C53CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #1F3DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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