#1F398D#1F398D

#1F398D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.143 H 266.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#1F398D
RGBrgb(31, 57, 141)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(78%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.13, 22.01, -49.44)
CIE-LCHlch(27.13, 54.12, 294.00°)
OKLaboklab(38% -0.009 -0.1427)
OKLCHoklch(38% 0.143 266.4)
XYZxyz(6.8342, 5.1399, 25.8261)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F398D #8D731F
analogous
#1F708D #1F398D #3C1F8D
triadic
#1F398D #8D1F39 #398D1F
tetradic
#1F398D #8D1F70 #8D731F #1F8D3C
square
#1F398D #8D1F70 #8D731F #1F8D3C
split-complementary
#1F398D #8D3C1F #708D1F
monochromatic
#091029 #14255B #1F398D #2A4DBF #4E6FD8

Accessibility & contrast

On white

10.35
#1F398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F398D
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F398D#FFFFFF#000000##FFFFFF
##1F398D1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f398d;
/* rgb */ color: rgb(31, 57, 141);
/* oklch */ color: oklch(38.0% 0.143 266.4);
Tailwind
colors: {
  custom: {
    50: '#6d6faf',
    500: '#1f398d',
    950: '#000000',
  },
}
SCSS
$custom: #1f398d;
$custom-light: #6d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f398d",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 225.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38002,
    "c": 0.14302,
    "h": 266.4
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F398D

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

Preview Lab → · Contrast checker → · Palette generator →

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