#1F399B#1F399B

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

Color values

HEX#1F399B
RGBrgb(31, 57, 155)
HSLhsl(227, 67%, 36%)
HSVhsv(227, 80%, 61%)
CMYKcmyk(80%, 63.2%, 0%, 39.2%)
CIE-LABlab(28.34, 27.49, -56.06)
CIE-LCHlch(28.34, 62.44, 296.12°)
OKLaboklab(39.28% -0.0088 -0.1622)
OKLCHoklch(39.28% 0.162 266.9)
XYZxyz(7.9425, 5.5832, 31.6631)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F399B #9B811F
analogous
#1F779B #1F399B #431F9B
triadic
#1F399B #9B1F39 #399B1F
tetradic
#1F399B #9B1F77 #9B811F #1F9B43
square
#1F399B #9B1F77 #9B811F #1F9B43
split-complementary
#1F399B #9B431F #779B1F
monochromatic
#0B1335 #152668 #1F399B #294CCE #5773DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F399B#FFFFFF#000000##FFFFFF
##1F399B1.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)
#00499E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f399b;
/* rgb */ color: rgb(31, 57, 155);
/* oklch */ color: oklch(39.3% 0.162 266.9);
Tailwind
colors: {
  custom: {
    50: '#706fb9',
    500: '#1f399b',
    950: '#000000',
  },
}
SCSS
$custom: #1f399b;
$custom-light: #706fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f399b",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 227.419,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39275,
    "c": 0.16241,
    "h": 266.9
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#1F399B
secondary
#C1AA55
accent
#C63EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F399B

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

Preview Lab → · Contrast checker → · Palette generator →

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