#1F398F#1F398F

#1F398F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.146 H 266.5°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#1F398F
RGBrgb(31, 57, 143)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 56%)
CMYKcmyk(78.3%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.30, 22.80, -50.40)
CIE-LCHlch(27.30, 55.32, 294.34°)
OKLaboklab(38.18% -0.0089 -0.1456)
OKLCHoklch(38.18% 0.146 266.5)
XYZxyz(6.9844, 5.1999, 26.6169)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398F #8F751F
analogous
#1F718F #1F398F #3D1F8F
triadic
#1F398F #8F1F39 #398F1F
tetradic
#1F398F #8F1F71 #8F751F #1F8F3D
square
#1F398F #8F1F71 #8F751F #1F8F3D
split-complementary
#1F398F #8F3D1F #718F1F
monochromatic
#09112A #14255D #1F398F #2A4DC1 #4F6FD9

Accessibility & contrast

On white

10.29
#1F398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F398F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398F#FFFFFF#000000##FFFFFF
##1F398F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f398f;
/* rgb */ color: rgb(31, 57, 143);
/* oklch */ color: oklch(38.2% 0.146 266.5);
Tailwind
colors: {
  custom: {
    50: '#6d6fb1',
    500: '#1f398f',
    950: '#000000',
  },
}
SCSS
$custom: #1f398f;
$custom-light: #6d6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398f",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 226.071,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3818,
    "c": 0.14584,
    "h": 266.5
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#1F398F
secondary
#BCA24E
accent
#C140E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F398F

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

Preview Lab → · Contrast checker → · Palette generator →

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