#1F389E#1F389E

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

Color values

HEX#1F389E
RGBrgb(31, 56, 158)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 62%)
CMYKcmyk(80.4%, 64.6%, 0%, 38%)
CIE-LABlab(28.35, 29.32, -57.87)
CIE-LCHlch(28.35, 64.88, 296.87°)
OKLaboklab(39.37% -0.0083 -0.1675)
OKLCHoklch(39.37% 0.168 267.2)
XYZxyz(8.1486, 5.5873, 32.9901)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F389E #9E851F
analogous
#1F789E #1F389E #461F9E
triadic
#1F389E #9E1F38 #389E1F
tetradic
#1F389E #9E1F78 #9E851F #1F9E46
square
#1F389E #9E1F78 #9E851F #1F9E46
split-complementary
#1F389E #9E461F #789E1F
monochromatic
#0B1438 #15266B #1F389E #294AD1 #5973DE

Accessibility & contrast

On white

9.92
#1F389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F389E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F389E#FFFFFF#000000##FFFFFF
##1F389E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f389e;
/* rgb */ color: rgb(31, 56, 158);
/* oklch */ color: oklch(39.4% 0.168 267.2);
Tailwind
colors: {
  custom: {
    50: '#716ebc',
    500: '#1f389e',
    950: '#000000',
  },
}
SCSS
$custom: #1f389e;
$custom-light: #716ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f389e",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 228.189,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.16768,
    "h": 267.2
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F389E

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

Preview Lab → · Contrast checker → · Palette generator →

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