#1F398A#1F398A

#1F398A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.139 H 266.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#1F398A
RGBrgb(31, 57, 138)
HSLhsl(225, 63%, 33%)
HSVhsv(225, 78%, 54%)
CMYKcmyk(77.5%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.88, 20.82, -47.99)
CIE-LCHlch(26.88, 52.31, 293.46°)
OKLaboklab(37.74% -0.0091 -0.1385)
OKLCHoklch(37.74% 0.139 266.2)
XYZxyz(6.6140, 5.0518, 24.6663)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398A #8A701F
analogous
#1F6E8A #1F398A #3B1F8A
triadic
#1F398A #8A1F39 #398A1F
tetradic
#1F398A #8A1F6E #8A701F #1F8A3B
square
#1F398A #8A1F6E #8A701F #1F8A3B
split-complementary
#1F398A #8A3B1F #6E8A1F
monochromatic
#091026 #142458 #1F398A #2A4EBC #4C6ED7

Accessibility & contrast

On white

10.44
#1F398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F398A
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398A#FFFFFF#000000##FFFFFF
##1F398A1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f398a;
/* rgb */ color: rgb(31, 57, 138);
/* oklch */ color: oklch(37.7% 0.139 266.2);
Tailwind
colors: {
  custom: {
    50: '#6c6fad',
    500: '#1f398a',
    950: '#000000',
  },
}
SCSS
$custom: #1f398a;
$custom-light: #6c6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398a",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 225.421,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37739,
    "c": 0.13877,
    "h": 266.2
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#1F398A
secondary
#BA9F4B
accent
#BE41E6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F398A

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

Preview Lab → · Contrast checker → · Palette generator →

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