#1F388B#1F388B

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

Color values

HEX#1F388B
RGBrgb(31, 56, 139)
HSLhsl(226, 64%, 33%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(77.7%, 59.7%, 0%, 45.5%)
CIE-LABlab(26.69, 21.91, -48.93)
CIE-LCHlch(26.69, 53.61, 294.13°)
OKLaboklab(37.62% -0.0083 -0.1412)
OKLCHoklch(37.62% 0.141 266.6)
XYZxyz(6.6378, 4.9830, 25.0331)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388B #8B721F
analogous
#1F6E8B #1F388B #3C1F8B
triadic
#1F388B #8B1F38 #388B1F
tetradic
#1F388B #8B1F6E #8B721F #1F8B3C
square
#1F388B #8B1F6E #8B721F #1F8B3C
split-complementary
#1F388B #8B3C1F #6E8B1F
monochromatic
#091027 #142459 #1F388B #2A4CBD #4D6DD7

Accessibility & contrast

On white

10.52
#1F388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F388B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388B#FFFFFF#000000##FFFFFF
##1F388B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f388b;
/* rgb */ color: rgb(31, 56, 139);
/* oklch */ color: oklch(37.6% 0.141 266.6);
Tailwind
colors: {
  custom: {
    50: '#6c6eae',
    500: '#1f388b',
    950: '#000000',
  },
}
SCSS
$custom: #1f388b;
$custom-light: #6c6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388b",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 226.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.14149,
    "h": 266.6
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#1F388B
secondary
#BAA14C
accent
#C041E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F388B

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

Preview Lab → · Contrast checker → · Palette generator →

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