#1F3E95#1F3E95

#1F3E95 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.148 H 265.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#1F3E95
RGBrgb(31, 62, 149)
HSLhsl(224, 66%, 35%)
HSVhsv(224, 79%, 58%)
CMYKcmyk(79.2%, 58.4%, 0%, 41.6%)
CIE-LABlab(29.17, 21.74, -51.03)
CIE-LCHlch(29.17, 55.47, 293.07°)
OKLaboklab(39.74% -0.0123 -0.1473)
OKLCHoklch(39.74% 0.148 265.2)
XYZxyz(7.7106, 5.9056, 29.1615)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E95 #95761F
analogous
#1F7995 #1F3E95 #3B1F95
triadic
#1F3E95 #951F3E #3E951F
tetradic
#1F3E95 #951F79 #95761F #1F953B
square
#1F3E95 #951F79 #95761F #1F953B
split-complementary
#1F3E95 #953B1F #79951F
monochromatic
#0A1430 #142962 #1F3E95 #2A53C8 #5377DB

Accessibility & contrast

On white

9.63
#1F3E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F3E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E95
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E95#FFFFFF#000000##FFFFFF
##1F3E951.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3e95;
/* rgb */ color: rgb(31, 62, 149);
/* oklch */ color: oklch(39.7% 0.148 265.2);
Tailwind
colors: {
  custom: {
    50: '#6e72b5',
    500: '#1f3e95',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e95;
$custom-light: #6e72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e95",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 224.237,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3974,
    "c": 0.14785,
    "h": 265.2
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#1F3E95
secondary
#BFA251
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3E95

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

Preview Lab → · Contrast checker → · Palette generator →

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