#1F3F93#1F3F93

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

Color values

HEX#1F3F93
RGBrgb(31, 63, 147)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 58%)
CMYKcmyk(78.9%, 57.1%, 0%, 42.4%)
CIE-LABlab(29.29, 20.26, -49.62)
CIE-LCHlch(29.29, 53.59, 292.21°)
OKLaboklab(39.78% -0.0131 -0.1432)
OKLCHoklch(39.78% 0.144 264.8)
XYZxyz(7.6072, 5.9520, 28.3460)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F93 #93731F
analogous
#1F7993 #1F3F93 #391F93
triadic
#1F3F93 #931F3F #3F931F
tetradic
#1F3F93 #931F79 #93731F #1F9339
square
#1F3F93 #931F79 #93731F #1F9339
split-complementary
#1F3F93 #93391F #79931F
monochromatic
#0A142E #142960 #1F3F93 #2A55C6 #5278DA

Accessibility & contrast

On white

9.59
#1F3F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F3F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F93
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F93#FFFFFF#000000##FFFFFF
##1F3F931.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3f93;
/* rgb */ color: rgb(31, 63, 147);
/* oklch */ color: oklch(39.8% 0.144 264.8);
Tailwind
colors: {
  custom: {
    50: '#6e73b3',
    500: '#1f3f93',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f93;
$custom-light: #6e73b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f93",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 147
  },
  "hsl": {
    "h": 223.448,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39779,
    "c": 0.14376,
    "h": 264.8
  },
  "luminance": 0.05953
}

Semantic roles & 50–950 ramp

primary
#1F3F93
secondary
#BE9F50
accent
#BA40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F93

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

Preview Lab → · Contrast checker → · Palette generator →

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