#1F3A94#1F3A94

#1F3A94 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.152 H 266.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1F3A94
RGBrgb(31, 58, 148)
HSLhsl(226, 65%, 35%)
HSVhsv(226, 79%, 58%)
CMYKcmyk(79.1%, 60.8%, 0%, 42%)
CIE-LABlab(27.99, 24.09, -52.34)
CIE-LCHlch(27.99, 57.62, 294.71°)
OKLaboklab(38.83% -0.0095 -0.1512)
OKLCHoklch(38.83% 0.152 266.4)
XYZxyz(7.4216, 5.4547, 28.6730)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A94 #94791F
analogous
#1F7494 #1F3A94 #3F1F94
triadic
#1F3A94 #941F3A #3A941F
tetradic
#1F3A94 #941F74 #94791F #1F943F
square
#1F3A94 #941F74 #94791F #1F943F
split-complementary
#1F3A94 #943F1F #74941F
monochromatic
#0A122F #142661 #1F3A94 #2A4EC7 #5372DB

Accessibility & contrast

On white

10.04
#1F3A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A94
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A94#FFFFFF#000000##FFFFFF
##1F3A941.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3a94;
/* rgb */ color: rgb(31, 58, 148);
/* oklch */ color: oklch(38.8% 0.152 266.4);
Tailwind
colors: {
  custom: {
    50: '#6e6fb4',
    500: '#1f3a94',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a94;
$custom-light: #6e6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a94",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 148
  },
  "hsl": {
    "h": 226.154,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.15155,
    "h": 266.4
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#1F3A94
secondary
#BEA551
accent
#C13FE8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3A94

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

Preview Lab → · Contrast checker → · Palette generator →

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