#1F388D#1F388D

#1F388D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.144 H 266.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1F388D
RGBrgb(31, 56, 141)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(78%, 60.3%, 0%, 44.7%)
CIE-LABlab(26.85, 22.70, -49.89)
CIE-LCHlch(26.85, 54.81, 294.47°)
OKLaboklab(37.8% -0.0083 -0.1441)
OKLCHoklch(37.8% 0.144 266.7)
XYZxyz(6.7853, 5.0420, 25.8097)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388D #8D741F
analogous
#1F6F8D #1F388D #3D1F8D
triadic
#1F388D #8D1F38 #388D1F
tetradic
#1F388D #8D1F6F #8D741F #1F8D3D
square
#1F388D #8D1F6F #8D741F #1F8D3D
split-complementary
#1F388D #8D3D1F #6F8D1F
monochromatic
#091029 #14245B #1F388D #2A4CBF #4E6ED8

Accessibility & contrast

On white

10.46
#1F388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F388D
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388D#FFFFFF#000000##FFFFFF
##1F388D1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f388d;
/* rgb */ color: rgb(31, 56, 141);
/* oklch */ color: oklch(37.8% 0.144 266.7);
Tailwind
colors: {
  custom: {
    50: '#6d6eaf',
    500: '#1f388d',
    950: '#000000',
  },
}
SCSS
$custom: #1f388d;
$custom-light: #6d6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388d",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 226.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37796,
    "c": 0.14432,
    "h": 266.7
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#1F388D
secondary
#BBA24D
accent
#C141E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F388D

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

Preview Lab → · Contrast checker → · Palette generator →

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