#1F3E89#1F3E89

#1F3E89 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.131 H 264.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1F3E89
RGBrgb(31, 62, 137)
HSLhsl(222, 63%, 33%)
HSVhsv(222, 77%, 54%)
CMYKcmyk(77.4%, 54.7%, 0%, 46.3%)
CIE-LABlab(28.23, 16.95, -45.18)
CIE-LCHlch(28.23, 48.26, 290.57°)
OKLaboklab(38.73% -0.0132 -0.1301)
OKLCHoklch(38.73% 0.131 264.2)
XYZxyz(6.8015, 5.5419, 24.3733)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E89 #896A1F
analogous
#1F7389 #1F3E89 #351F89
triadic
#1F3E89 #891F3E #3E891F
tetradic
#1F3E89 #891F73 #896A1F #1F8935
square
#1F3E89 #891F73 #896A1F #1F8935
split-complementary
#1F3E89 #89351F #73891F
monochromatic
#081125 #142757 #1F3E89 #2A55BB #4C74D6

Accessibility & contrast

On white

9.96
#1F3E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E89
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E89#FFFFFF#000000##FFFFFF
##1F3E891.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05488C
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3e89;
/* rgb */ color: rgb(31, 62, 137);
/* oklch */ color: oklch(38.7% 0.131 264.2);
Tailwind
colors: {
  custom: {
    50: '#6b72ac',
    500: '#1f3e89',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e89;
$custom-light: #6b72ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e89",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 137
  },
  "hsl": {
    "h": 222.453,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38728,
    "c": 0.1308,
    "h": 264.2
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#1F3E89
secondary
#B9994B
accent
#B642E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3E89

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

Preview Lab → · Contrast checker → · Palette generator →

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