#1F3D94#1F3D94

#1F3D94 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.148 H 265.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1F3D94
RGBrgb(31, 61, 148)
HSLhsl(225, 65%, 35%)
HSVhsv(225, 79%, 58%)
CMYKcmyk(79.1%, 58.8%, 0%, 42%)
CIE-LABlab(28.81, 22.03, -51.01)
CIE-LCHlch(28.81, 55.56, 293.36°)
OKLaboklab(39.45% -0.0116 -0.1473)
OKLCHoklch(39.45% 0.148 265.5)
XYZxyz(7.5772, 5.7660, 28.7248)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D94 #94761F
analogous
#1F7894 #1F3D94 #3B1F94
triadic
#1F3D94 #941F3D #3D941F
tetradic
#1F3D94 #941F78 #94761F #1F943B
square
#1F3D94 #941F78 #94761F #1F943B
split-complementary
#1F3D94 #943B1F #78941F
monochromatic
#0A132F #142861 #1F3D94 #2A52C7 #5375DB

Accessibility & contrast

On white

9.75
#1F3D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F3D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D94
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D94#FFFFFF#000000##FFFFFF
##1F3D941.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3d94;
/* rgb */ color: rgb(31, 61, 148);
/* oklch */ color: oklch(39.4% 0.148 265.5);
Tailwind
colors: {
  custom: {
    50: '#6e72b4',
    500: '#1f3d94',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d94;
$custom-light: #6e72b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d94",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 224.615,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39446,
    "c": 0.14773,
    "h": 265.5
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#1F3D94
secondary
#BEA251
accent
#BD3FE8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3D94

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

Preview Lab → · Contrast checker → · Palette generator →

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