#1F3E8A#1F3E8A

#1F3E8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.132 H 264.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#1F3E8A
RGBrgb(31, 62, 138)
HSLhsl(223, 63%, 33%)
HSVhsv(223, 78%, 54%)
CMYKcmyk(77.5%, 55.1%, 0%, 45.9%)
CIE-LABlab(28.30, 17.35, -45.68)
CIE-LCHlch(28.30, 48.86, 290.80°)
OKLaboklab(38.81% -0.0131 -0.1316)
OKLCHoklch(38.81% 0.132 264.3)
XYZxyz(6.8735, 5.5708, 24.7528)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E8A #8A6B1F
analogous
#1F738A #1F3E8A #351F8A
triadic
#1F3E8A #8A1F3E #3E8A1F
tetradic
#1F3E8A #8A1F73 #8A6B1F #1F8A35
square
#1F3E8A #8A1F73 #8A6B1F #1F8A35
split-complementary
#1F3E8A #8A351F #738A1F
monochromatic
#091126 #142858 #1F3E8A #2A54BC #4C75D7

Accessibility & contrast

On white

9.93
#1F3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E8A
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E8A#FFFFFF#000000##FFFFFF
##1F3E8A1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3e8a;
/* rgb */ color: rgb(31, 62, 138);
/* oklch */ color: oklch(38.8% 0.132 264.3);
Tailwind
colors: {
  custom: {
    50: '#6b72ad',
    500: '#1f3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e8a;
$custom-light: #6b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e8a",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 222.617,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3881,
    "c": 0.13225,
    "h": 264.3
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#1F3E8A
secondary
#BA9A4B
accent
#B741E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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