#1F3E98#1F3E98

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

Color values

HEX#1F3E98
RGBrgb(31, 62, 152)
HSLhsl(225, 66%, 36%)
HSVhsv(225, 80%, 60%)
CMYKcmyk(79.6%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.42, 22.92, -52.47)
CIE-LCHlch(29.42, 57.25, 293.60°)
OKLaboklab(40% -0.0121 -0.1515)
OKLCHoklch(40% 0.152 265.4)
XYZxyz(7.9532, 6.0026, 30.4391)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E98 #98791F
analogous
#1F7A98 #1F3E98 #3C1F98
triadic
#1F3E98 #981F3E #3E981F
tetradic
#1F3E98 #981F7A #98791F #1F983C
square
#1F3E98 #981F7A #98791F #1F983C
split-complementary
#1F3E98 #983C1F #7A981F
monochromatic
#0A1532 #152965 #1F3E98 #2953CB #5578DC

Accessibility & contrast

On white

9.54
#1F3E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3E98
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E98#FFFFFF#000000##FFFFFF
##1F3E981.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3e98;
/* rgb */ color: rgb(31, 62, 152);
/* oklch */ color: oklch(40.0% 0.152 265.4);
Tailwind
colors: {
  custom: {
    50: '#6f72b7',
    500: '#1f3e98',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e98;
$custom-light: #6f72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e98",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 224.628,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.15202,
    "h": 265.4
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#1F3E98
secondary
#C0A453
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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