#1F398E#1F398E

#1F398E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.144 H 266.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#1F398E
RGBrgb(31, 57, 142)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 56%)
CMYKcmyk(78.2%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.21, 22.41, -49.92)
CIE-LCHlch(27.21, 54.72, 294.17°)
OKLaboklab(38.09% -0.009 -0.1442)
OKLCHoklch(38.09% 0.144 266.4)
XYZxyz(6.9090, 5.1698, 26.2197)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398E #8E741F
analogous
#1F718E #1F398E #3D1F8E
triadic
#1F398E #8E1F39 #398E1F
tetradic
#1F398E #8E1F71 #8E741F #1F8E3D
square
#1F398E #8E1F71 #8E741F #1F8E3D
split-complementary
#1F398E #8E3D1F #718E1F
monochromatic
#09112A #14255C #1F398E #2A4DC0 #4F6FD9

Accessibility & contrast

On white

10.32
#1F398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F398E
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398E#FFFFFF#000000##FFFFFF
##1F398E1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f398e;
/* rgb */ color: rgb(31, 57, 142);
/* oklch */ color: oklch(38.1% 0.144 266.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fb0',
    500: '#1f398e',
    950: '#000000',
  },
}
SCSS
$custom: #1f398e;
$custom-light: #6d6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398e",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 225.946,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38091,
    "c": 0.14444,
    "h": 266.4
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

primary
#1F398E
secondary
#BBA24D
accent
#C041E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F398E

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

Preview Lab → · Contrast checker → · Palette generator →

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