#1F3DA8#1F3DA8

#1F3DA8 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.175 H 266.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#1F3DA8
RGBrgb(31, 61, 168)
HSLhsl(227, 69%, 39%)
HSVhsv(227, 82%, 66%)
CMYKcmyk(81.5%, 63.7%, 0%, 34.1%)
CIE-LABlab(30.53, 29.83, -60.33)
CIE-LCHlch(30.53, 67.30, 296.31°)
OKLaboklab(41.26% -0.0113 -0.1746)
OKLCHoklch(41.26% 0.175 266.3)
XYZxyz(9.2992, 6.4548, 37.7940)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3DA8 #A88A1F
analogous
#1F82A8 #1F3DA8 #461FA8
triadic
#1F3DA8 #A81F3D #3DA81F
tetradic
#1F3DA8 #A81F82 #A88A1F #1FA846
square
#1F3DA8 #A81F82 #A88A1F #1FA846
split-complementary
#1F3DA8 #A8461F #82A81F
monochromatic
#0C1741 #152A74 #1F3DA8 #2C52D8 #607CE2

Accessibility & contrast

On white

9.17
#1F3DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F3DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3DA8
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3DA8#FFFFFF#000000##FFFFFF
##1F3DA81.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3da8;
/* rgb */ color: rgb(31, 61, 168);
/* oklch */ color: oklch(41.3% 0.175 266.3);
Tailwind
colors: {
  custom: {
    50: '#7372c3',
    500: '#1f3da8',
    950: '#000000',
  },
}
SCSS
$custom: #1f3da8;
$custom-light: #7372c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3da8",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 226.861,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41258,
    "c": 0.17498,
    "h": 266.3
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#1F3DA8
secondary
#C6AF5D
accent
#C53CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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