#1F379B#1F379B

#1F379B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.165 H 267.3°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#1F379B
RGBrgb(31, 55, 155)
HSLhsl(228, 67%, 36%)
HSVhsv(228, 80%, 61%)
CMYKcmyk(80%, 64.5%, 0%, 39.2%)
CIE-LABlab(27.82, 28.84, -56.91)
CIE-LCHlch(27.82, 63.80, 296.87°)
OKLaboklab(38.89% -0.0076 -0.1647)
OKLCHoklch(38.89% 0.165 267.3)
XYZxyz(7.8456, 5.3893, 31.6307)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F379B #9B831F
analogous
#1F759B #1F379B #451F9B
triadic
#1F379B #9B1F37 #379B1F
tetradic
#1F379B #9B1F75 #9B831F #1F9B45
square
#1F379B #9B1F75 #9B831F #1F9B45
split-complementary
#1F379B #9B451F #759B1F
monochromatic
#0B1335 #152568 #1F379B #2949CE #5771DD

Accessibility & contrast

On white

10.11
#1F379B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F379B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F379B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F379B#FFFFFF#000000##FFFFFF
##1F379B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f379b;
/* rgb */ color: rgb(31, 55, 155);
/* oklch */ color: oklch(38.9% 0.165 267.3);
Tailwind
colors: {
  custom: {
    50: '#706db9',
    500: '#1f379b',
    950: '#000000',
  },
}
SCSS
$custom: #1f379b;
$custom-light: #706db9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f379b",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 155
  },
  "hsl": {
    "h": 228.387,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38891,
    "c": 0.16486,
    "h": 267.3
  },
  "luminance": 0.0539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F379B

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

Preview Lab → · Contrast checker → · Palette generator →

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