#1F389B#1F389B

#1F389B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.164 H 267.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1F389B
RGBrgb(31, 56, 155)
HSLhsl(228, 67%, 36%)
HSVhsv(228, 80%, 61%)
CMYKcmyk(80%, 63.9%, 0%, 39.2%)
CIE-LABlab(28.07, 28.17, -56.49)
CIE-LCHlch(28.07, 63.12, 296.50°)
OKLaboklab(39.08% -0.0082 -0.1634)
OKLCHoklch(39.08% 0.164 267.1)
XYZxyz(7.8936, 5.4853, 31.6467)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F389B #9B821F
analogous
#1F769B #1F389B #441F9B
triadic
#1F389B #9B1F38 #389B1F
tetradic
#1F389B #9B1F76 #9B821F #1F9B44
square
#1F389B #9B1F76 #9B821F #1F9B44
split-complementary
#1F389B #9B441F #769B1F
monochromatic
#0B1335 #152668 #1F389B #294ACE #5772DD

Accessibility & contrast

On white

10.01
#1F389B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F389B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F389B
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F389B#FFFFFF#000000##FFFFFF
##1F389B1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f389b;
/* rgb */ color: rgb(31, 56, 155);
/* oklch */ color: oklch(39.1% 0.164 267.1);
Tailwind
colors: {
  custom: {
    50: '#706eb9',
    500: '#1f389b',
    950: '#000000',
  },
}
SCSS
$custom: #1f389b;
$custom-light: #706eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f389b",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 155
  },
  "hsl": {
    "h": 227.903,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39082,
    "c": 0.16364,
    "h": 267.1
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#1F389B
secondary
#C1AB55
accent
#C73EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F389B

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

Preview Lab → · Contrast checker → · Palette generator →

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