#1F3B95#1F3B95

#1F3B95 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.152 H 266.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#1F3B95
RGBrgb(31, 59, 149)
HSLhsl(226, 66%, 35%)
HSVhsv(226, 79%, 58%)
CMYKcmyk(79.2%, 60.4%, 0%, 41.6%)
CIE-LABlab(28.35, 23.79, -52.38)
CIE-LCHlch(28.35, 57.53, 294.43°)
OKLaboklab(39.12% -0.0102 -0.1513)
OKLCHoklch(39.12% 0.152 266.2)
XYZxyz(7.5519, 5.5883, 29.1086)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B95 #95791F
analogous
#1F7695 #1F3B95 #3E1F95
triadic
#1F3B95 #951F3B #3B951F
tetradic
#1F3B95 #951F76 #95791F #1F953E
square
#1F3B95 #951F76 #95791F #1F953E
split-complementary
#1F3B95 #953E1F #76951F
monochromatic
#0A1330 #142762 #1F3B95 #2A4FC8 #5373DB

Accessibility & contrast

On white

9.92
#1F3B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F3B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B95
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B95#FFFFFF#000000##FFFFFF
##1F3B951.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3b95;
/* rgb */ color: rgb(31, 59, 149);
/* oklch */ color: oklch(39.1% 0.152 266.2);
Tailwind
colors: {
  custom: {
    50: '#6e70b5',
    500: '#1f3b95',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b95;
$custom-light: #6e70b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b95",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 149
  },
  "hsl": {
    "h": 225.763,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39123,
    "c": 0.15167,
    "h": 266.2
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#1F3B95
secondary
#BFA551
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3B95

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

Preview Lab → · Contrast checker → · Palette generator →

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