#1F388C#1F388C

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

Color values

HEX#1F388C
RGBrgb(31, 56, 140)
HSLhsl(226, 64%, 34%)
HSVhsv(226, 78%, 55%)
CMYKcmyk(77.9%, 60%, 0%, 45.1%)
CIE-LABlab(26.77, 22.31, -49.41)
CIE-LCHlch(26.77, 54.21, 294.30°)
OKLaboklab(37.71% -0.0083 -0.1427)
OKLCHoklch(37.71% 0.143 266.7)
XYZxyz(6.7112, 5.0124, 25.4196)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388C #8C731F
analogous
#1F6E8C #1F388C #3C1F8C
triadic
#1F388C #8C1F38 #388C1F
tetradic
#1F388C #8C1F6E #8C731F #1F8C3C
square
#1F388C #8C1F6E #8C731F #1F8C3C
split-complementary
#1F388C #8C3C1F #6E8C1F
monochromatic
#091028 #14245A #1F388C #2A4CBE #4E6DD8

Accessibility & contrast

On white

10.49
#1F388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F388C
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388C#FFFFFF#000000##FFFFFF
##1F388C1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f388c;
/* rgb */ color: rgb(31, 56, 140);
/* oklch */ color: oklch(37.7% 0.143 266.7);
Tailwind
colors: {
  custom: {
    50: '#6c6eae',
    500: '#1f388c',
    950: '#000000',
  },
}
SCSS
$custom: #1f388c;
$custom-light: #6c6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388c",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 226.239,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37707,
    "c": 0.1429,
    "h": 266.7
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#1F388C
secondary
#BBA14C
accent
#C141E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F388C

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

Preview Lab → · Contrast checker → · Palette generator →

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