#1F3F92#1F3F92

#1F3F92 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.142 H 264.7°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#1F3F92
RGBrgb(31, 63, 146)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 57%)
CMYKcmyk(78.8%, 56.8%, 0%, 42.7%)
CIE-LABlab(29.21, 19.86, -49.13)
CIE-LCHlch(29.21, 52.99, 292.01°)
OKLaboklab(39.69% -0.0132 -0.1417)
OKLCHoklch(39.69% 0.142 264.7)
XYZxyz(7.5290, 5.9208, 27.9346)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F92 #92721F
analogous
#1F7992 #1F3F92 #381F92
triadic
#1F3F92 #921F3F #3F921F
tetradic
#1F3F92 #921F79 #92721F #1F9238
square
#1F3F92 #921F79 #92721F #1F9238
split-complementary
#1F3F92 #92381F #79921F
monochromatic
#0A132D #142960 #1F3F92 #2A55C4 #5177DA

Accessibility & contrast

On white

9.61
#1F3F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F3F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F92
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F92#FFFFFF#000000##FFFFFF
##1F3F921.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3f92;
/* rgb */ color: rgb(31, 63, 146);
/* oklch */ color: oklch(39.7% 0.142 264.7);
Tailwind
colors: {
  custom: {
    50: '#6d73b3',
    500: '#1f3f92',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f92;
$custom-light: #6d73b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f92",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 146
  },
  "hsl": {
    "h": 223.304,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39694,
    "c": 0.14235,
    "h": 264.7
  },
  "luminance": 0.05922
}

Semantic roles & 50–950 ramp

primary
#1F3F92
secondary
#BD9F50
accent
#B940E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F92

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

Preview Lab → · Contrast checker → · Palette generator →

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