#1F398C#1F398C

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

Color values

HEX#1F398C
RGBrgb(31, 57, 140)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(77.9%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.05, 21.62, -48.96)
CIE-LCHlch(27.05, 53.52, 293.82°)
OKLaboklab(37.91% -0.0091 -0.1413)
OKLCHoklch(37.91% 0.142 266.3)
XYZxyz(6.7602, 5.1103, 25.4360)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398C #8C721F
analogous
#1F6F8C #1F398C #3B1F8C
triadic
#1F398C #8C1F39 #398C1F
tetradic
#1F398C #8C1F6F #8C721F #1F8C3B
square
#1F398C #8C1F6F #8C721F #1F8C3B
split-complementary
#1F398C #8C3B1F #6F8C1F
monochromatic
#091028 #14255A #1F398C #2A4DBE #4E6FD8

Accessibility & contrast

On white

10.38
#1F398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F398C
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398C#FFFFFF#000000##FFFFFF
##1F398C1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f398c;
/* rgb */ color: rgb(31, 57, 140);
/* oklch */ color: oklch(37.9% 0.142 266.3);
Tailwind
colors: {
  custom: {
    50: '#6c6fae',
    500: '#1f398c',
    950: '#000000',
  },
}
SCSS
$custom: #1f398c;
$custom-light: #6c6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398c",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 225.688,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37914,
    "c": 0.14161,
    "h": 266.3
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F398C

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

Preview Lab → · Contrast checker → · Palette generator →

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