#1F398B#1F398B

#1F398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.140 H 266.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#1F398B
RGBrgb(31, 57, 139)
HSLhsl(226, 64%, 33%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(77.7%, 59%, 0%, 45.5%)
CIE-LABlab(26.96, 21.22, -48.47)
CIE-LCHlch(26.96, 52.91, 293.64°)
OKLaboklab(37.83% -0.0091 -0.1399)
OKLCHoklch(37.83% 0.14 266.3)
XYZxyz(6.6868, 5.0809, 25.0494)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398B #8B711F
analogous
#1F6F8B #1F398B #3B1F8B
triadic
#1F398B #8B1F39 #398B1F
tetradic
#1F398B #8B1F6F #8B711F #1F8B3B
square
#1F398B #8B1F6F #8B711F #1F8B3B
split-complementary
#1F398B #8B3B1F #6F8B1F
monochromatic
#091027 #142459 #1F398B #2A4EBD #4D6ED7

Accessibility & contrast

On white

10.41
#1F398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F398B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398B#FFFFFF#000000##FFFFFF
##1F398B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f398b;
/* rgb */ color: rgb(31, 57, 139);
/* oklch */ color: oklch(37.8% 0.140 266.3);
Tailwind
colors: {
  custom: {
    50: '#6c6fae',
    500: '#1f398b',
    950: '#000000',
  },
}
SCSS
$custom: #1f398b;
$custom-light: #6c6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398b",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 225.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37827,
    "c": 0.1402,
    "h": 266.3
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#1F398B
secondary
#BAA04C
accent
#BF41E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F398B

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

Preview Lab → · Contrast checker → · Palette generator →

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