#1F389D#1F389D

#1F389D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.166 H 267.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#1F389D
RGBrgb(31, 56, 157)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 62%)
CMYKcmyk(80.3%, 64.3%, 0%, 38.4%)
CIE-LABlab(28.26, 28.94, -57.41)
CIE-LCHlch(28.26, 64.29, 296.75°)
OKLaboklab(39.27% -0.0083 -0.1661)
OKLCHoklch(39.27% 0.166 267.2)
XYZxyz(8.0629, 5.5530, 32.5386)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F389D #9D841F
analogous
#1F779D #1F389D #451F9D
triadic
#1F389D #9D1F38 #389D1F
tetradic
#1F389D #9D1F77 #9D841F #1F9D45
square
#1F389D #9D1F77 #9D841F #1F9D45
split-complementary
#1F389D #9D451F #779D1F
monochromatic
#0B1437 #15266A #1F389D #294AD0 #5873DE

Accessibility & contrast

On white

9.95
#1F389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F389D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F389D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F389D#FFFFFF#000000##FFFFFF
##1F389D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f389d;
/* rgb */ color: rgb(31, 56, 157);
/* oklch */ color: oklch(39.3% 0.166 267.2);
Tailwind
colors: {
  custom: {
    50: '#716ebb',
    500: '#1f389d',
    950: '#000000',
  },
}
SCSS
$custom: #1f389d;
$custom-light: #716ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f389d",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 228.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39271,
    "c": 0.16634,
    "h": 267.2
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#1F389D
secondary
#C2AC56
accent
#C83EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F389D

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

Preview Lab → · Contrast checker → · Palette generator →

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