#1F388F#1F388F

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

Color values

HEX#1F388F
RGBrgb(31, 56, 143)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 56%)
CMYKcmyk(78.3%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.02, 23.49, -50.85)
CIE-LCHlch(27.02, 56.01, 294.80°)
OKLaboklab(37.98% -0.0082 -0.1469)
OKLCHoklch(37.98% 0.147 266.8)
XYZxyz(6.9354, 5.1020, 26.6005)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F388F #8F761F
analogous
#1F708F #1F388F #3E1F8F
triadic
#1F388F #8F1F38 #388F1F
tetradic
#1F388F #8F1F70 #8F761F #1F8F3E
square
#1F388F #8F1F70 #8F761F #1F8F3E
split-complementary
#1F388F #8F3E1F #708F1F
monochromatic
#09112A #14245D #1F388F #2A4CC1 #4F6ED9

Accessibility & contrast

On white

10.39
#1F388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F388F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F388F#FFFFFF#000000##FFFFFF
##1F388F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f388f;
/* rgb */ color: rgb(31, 56, 143);
/* oklch */ color: oklch(38.0% 0.147 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6eb1',
    500: '#1f388f',
    950: '#000000',
  },
}
SCSS
$custom: #1f388f;
$custom-light: #6d6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f388f",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 226.607,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.14712,
    "h": 266.8
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#1F388F
secondary
#BCA34E
accent
#C240E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F388F

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

Preview Lab → · Contrast checker → · Palette generator →

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