#1F399E#1F399E

#1F399E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.166 H 266.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1F399E
RGBrgb(31, 57, 158)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 62%)
CMYKcmyk(80.4%, 63.9%, 0%, 38%)
CIE-LABlab(28.60, 28.65, -57.45)
CIE-LCHlch(28.60, 64.20, 296.51°)
OKLaboklab(39.56% -0.0089 -0.1662)
OKLCHoklch(39.56% 0.166 266.9)
XYZxyz(8.1976, 5.6852, 33.0064)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F399E #9E841F
analogous
#1F789E #1F399E #451F9E
triadic
#1F399E #9E1F39 #399E1F
tetradic
#1F399E #9E1F78 #9E841F #1F9E45
square
#1F399E #9E1F78 #9E841F #1F9E45
split-complementary
#1F399E #9E451F #789E1F
monochromatic
#0B1438 #15276B #1F399E #294BD1 #5974DE

Accessibility & contrast

On white

9.83
#1F399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F399E
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F399E#FFFFFF#000000##FFFFFF
##1F399E1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f399e;
/* rgb */ color: rgb(31, 57, 158);
/* oklch */ color: oklch(39.6% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#716fbc',
    500: '#1f399e',
    950: '#000000',
  },
}
SCSS
$custom: #1f399e;
$custom-light: #716fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f399e",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 227.717,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39556,
    "c": 0.16646,
    "h": 266.9
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#1F399E
secondary
#C2AC56
accent
#C73EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F399E

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

Preview Lab → · Contrast checker → · Palette generator →

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