#1F399C#1F399C

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

Color values

HEX#1F399C
RGBrgb(31, 57, 156)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 61%)
CMYKcmyk(80.1%, 63.5%, 0%, 38.8%)
CIE-LABlab(28.42, 27.88, -56.53)
CIE-LCHlch(28.42, 63.03, 296.26°)
OKLaboklab(39.37% -0.0088 -0.1635)
OKLCHoklch(39.37% 0.164 266.9)
XYZxyz(8.0269, 5.6169, 32.1072)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F399C #9C821F
analogous
#1F789C #1F399C #441F9C
triadic
#1F399C #9C1F39 #399C1F
tetradic
#1F399C #9C1F78 #9C821F #1F9C44
square
#1F399C #9C1F78 #9C821F #1F9C44
split-complementary
#1F399C #9C441F #789C1F
monochromatic
#0B1436 #152669 #1F399C #294CCF #5874DE

Accessibility & contrast

On white

9.89
#1F399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F399C
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F399C#FFFFFF#000000##FFFFFF
##1F399C1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f399c;
/* rgb */ color: rgb(31, 57, 156);
/* oklch */ color: oklch(39.4% 0.164 266.9);
Tailwind
colors: {
  custom: {
    50: '#706fba',
    500: '#1f399c',
    950: '#000000',
  },
}
SCSS
$custom: #1f399c;
$custom-light: #706fba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f399c",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 227.52,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39368,
    "c": 0.16376,
    "h": 266.9
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F399C

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

Preview Lab → · Contrast checker → · Palette generator →

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