#1F3F94#1F3F94

#1F3F94 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.145 H 264.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#1F3F94
RGBrgb(31, 63, 148)
HSLhsl(224, 65%, 35%)
HSVhsv(224, 79%, 58%)
CMYKcmyk(79.1%, 57.4%, 0%, 42%)
CIE-LABlab(29.37, 20.65, -50.10)
CIE-LCHlch(29.37, 54.19, 292.40°)
OKLaboklab(39.86% -0.013 -0.1446)
OKLCHoklch(39.86% 0.145 264.8)
XYZxyz(7.6860, 5.9836, 28.7611)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F94 #94741F
analogous
#1F7994 #1F3F94 #3A1F94
triadic
#1F3F94 #941F3F #3F941F
tetradic
#1F3F94 #941F79 #94741F #1F943A
square
#1F3F94 #941F79 #94741F #1F943A
split-complementary
#1F3F94 #943A1F #79941F
monochromatic
#0A142F #142961 #1F3F94 #2A55C7 #5378DB

Accessibility & contrast

On white

9.56
#1F3F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F3F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F94
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F94#FFFFFF#000000##FFFFFF
##1F3F941.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3f94;
/* rgb */ color: rgb(31, 63, 148);
/* oklch */ color: oklch(39.9% 0.145 264.8);
Tailwind
colors: {
  custom: {
    50: '#6e73b4',
    500: '#1f3f94',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f94;
$custom-light: #6e73b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f94",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 148
  },
  "hsl": {
    "h": 223.59,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.14517,
    "h": 264.8
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#1F3F94
secondary
#BEA051
accent
#BA3FE8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F94

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

Preview Lab → · Contrast checker → · Palette generator →

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