#1F3D95#1F3D95

#1F3D95 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.149 H 265.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#1F3D95
RGBrgb(31, 61, 149)
HSLhsl(225, 66%, 35%)
HSVhsv(225, 79%, 58%)
CMYKcmyk(79.2%, 59.1%, 0%, 41.6%)
CIE-LABlab(28.90, 22.42, -51.48)
CIE-LCHlch(28.90, 56.15, 293.53°)
OKLaboklab(39.53% -0.0116 -0.1487)
OKLCHoklch(39.53% 0.149 265.6)
XYZxyz(7.6567, 5.7978, 29.1435)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D95 #95771F
analogous
#1F7895 #1F3D95 #3C1F95
triadic
#1F3D95 #951F3D #3D951F
tetradic
#1F3D95 #951F78 #95771F #1F953C
square
#1F3D95 #951F78 #95771F #1F953C
split-complementary
#1F3D95 #953C1F #78951F
monochromatic
#0A1430 #142862 #1F3D95 #2A52C8 #5376DB

Accessibility & contrast

On white

9.72
#1F3D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F3D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D95
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D95#FFFFFF#000000##FFFFFF
##1F3D951.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3d95;
/* rgb */ color: rgb(31, 61, 149);
/* oklch */ color: oklch(39.5% 0.149 265.6);
Tailwind
colors: {
  custom: {
    50: '#6e72b5',
    500: '#1f3d95',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d95;
$custom-light: #6e72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d95",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 149
  },
  "hsl": {
    "h": 224.746,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39533,
    "c": 0.14913,
    "h": 265.6
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#1F3D95
secondary
#BFA351
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3D95

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

Preview Lab → · Contrast checker → · Palette generator →

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