#1F3EA8#1F3EA8

#1F3EA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.174 H 266.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#1F3EA8
RGBrgb(31, 62, 168)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 82%, 66%)
CMYKcmyk(81.5%, 63.1%, 0%, 34.1%)
CIE-LABlab(30.79, 29.16, -59.91)
CIE-LCHlch(30.79, 66.63, 295.95°)
OKLaboklab(41.45% -0.0119 -0.1734)
OKLCHoklch(41.45% 0.174 266.1)
XYZxyz(9.3531, 6.5626, 37.8120)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EA8 #A8891F
analogous
#1F83A8 #1F3EA8 #441FA8
triadic
#1F3EA8 #A81F3E #3EA81F
tetradic
#1F3EA8 #A81F83 #A8891F #1FA844
square
#1F3EA8 #A81F83 #A8891F #1FA844
split-complementary
#1F3EA8 #A8441F #83A81F
monochromatic
#0C1841 #152B74 #1F3EA8 #2C53D8 #607DE2

Accessibility & contrast

On white

9.08
#1F3EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F3EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EA8
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EA8#FFFFFF#000000##FFFFFF
##1F3EA81.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3ea8;
/* rgb */ color: rgb(31, 62, 168);
/* oklch */ color: oklch(41.4% 0.174 266.1);
Tailwind
colors: {
  custom: {
    50: '#7373c3',
    500: '#1f3ea8',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ea8;
$custom-light: #7373c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ea8",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 226.423,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41448,
    "c": 0.17378,
    "h": 266.1
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#1F3EA8
secondary
#C6AE5D
accent
#C43CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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