#1F388A#1F388A

#1F388A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.140 H 266.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#1F388A
RGBrgb(31, 56, 138)
HSLhsl(226, 63%, 33%)
HSVhsv(226, 78%, 54%)
CMYKcmyk(77.5%, 59.4%, 0%, 45.9%)
CIE-LABlab(26.60, 21.52, -48.44)
CIE-LCHlch(26.60, 53.00, 293.95°)
OKLaboklab(37.53% -0.0084 -0.1398)
OKLCHoklch(37.53% 0.14 266.6)
XYZxyz(6.5651, 4.9539, 24.6500)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388A #8A711F
analogous
#1F6D8A #1F388A #3B1F8A
triadic
#1F388A #8A1F38 #388A1F
tetradic
#1F388A #8A1F6D #8A711F #1F8A3B
square
#1F388A #8A1F6D #8A711F #1F8A3B
split-complementary
#1F388A #8A3B1F #6D8A1F
monochromatic
#090F26 #142458 #1F388A #2A4CBC #4C6DD7

Accessibility & contrast

On white

10.55
#1F388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F388A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388A#FFFFFF#000000##FFFFFF
##1F388A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f388a;
/* rgb */ color: rgb(31, 56, 138);
/* oklch */ color: oklch(37.5% 0.140 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6ead',
    500: '#1f388a',
    950: '#000000',
  },
}
SCSS
$custom: #1f388a;
$custom-light: #6c6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388a",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 225.981,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3753,
    "c": 0.14007,
    "h": 266.6
  },
  "luminance": 0.04955
}

Semantic roles & 50–950 ramp

primary
#1F388A
secondary
#BAA04B
accent
#C041E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F388A

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

Preview Lab → · Contrast checker → · Palette generator →

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