#1F3F95#1F3F95

#1F3F95 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.147 H 264.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#1F3F95
RGBrgb(31, 63, 149)
HSLhsl(224, 66%, 35%)
HSVhsv(224, 79%, 58%)
CMYKcmyk(79.2%, 57.7%, 0%, 41.6%)
CIE-LABlab(29.45, 21.05, -50.58)
CIE-LCHlch(29.45, 54.79, 292.60°)
OKLaboklab(39.95% -0.013 -0.146)
OKLCHoklch(39.95% 0.147 264.9)
XYZxyz(7.7655, 6.0154, 29.1798)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F95 #95751F
analogous
#1F7A95 #1F3F95 #3A1F95
triadic
#1F3F95 #951F3F #3F951F
tetradic
#1F3F95 #951F7A #95751F #1F953A
square
#1F3F95 #951F7A #95751F #1F953A
split-complementary
#1F3F95 #953A1F #7A951F
monochromatic
#0A1430 #142A62 #1F3F95 #2A54C8 #5378DB

Accessibility & contrast

On white

9.53
#1F3F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3F95
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F95#FFFFFF#000000##FFFFFF
##1F3F951.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3f95;
/* rgb */ color: rgb(31, 63, 149);
/* oklch */ color: oklch(40.0% 0.147 264.9);
Tailwind
colors: {
  custom: {
    50: '#6e73b5',
    500: '#1f3f95',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f95;
$custom-light: #6e73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f95",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 223.729,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.14657,
    "h": 264.9
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#1F3F95
secondary
#BFA151
accent
#BB3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F95

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

Preview Lab → · Contrast checker → · Palette generator →

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