#1F389C#1F389C

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

Color values

HEX#1F389C
RGBrgb(31, 56, 156)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 61%)
CMYKcmyk(80.1%, 64.1%, 0%, 38.8%)
CIE-LABlab(28.16, 28.55, -56.95)
CIE-LCHlch(28.16, 63.71, 296.63°)
OKLaboklab(39.18% -0.0082 -0.1648)
OKLCHoklch(39.18% 0.165 267.1)
XYZxyz(7.9779, 5.5190, 32.0909)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F389C #9C831F
analogous
#1F779C #1F389C #451F9C
triadic
#1F389C #9C1F38 #389C1F
tetradic
#1F389C #9C1F77 #9C831F #1F9C45
square
#1F389C #9C1F77 #9C831F #1F9C45
split-complementary
#1F389C #9C451F #779C1F
monochromatic
#0B1336 #152669 #1F389C #294ACF #5872DE

Accessibility & contrast

On white

9.98
#1F389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F389C
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F389C#FFFFFF#000000##FFFFFF
##1F389C1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f389c;
/* rgb */ color: rgb(31, 56, 156);
/* oklch */ color: oklch(39.2% 0.165 267.1);
Tailwind
colors: {
  custom: {
    50: '#716eba',
    500: '#1f389c',
    950: '#000000',
  },
}
SCSS
$custom: #1f389c;
$custom-light: #716eba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f389c",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 228,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39176,
    "c": 0.16499,
    "h": 267.1
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F389C

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

Preview Lab → · Contrast checker → · Palette generator →

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