#1F379C#1F379C

#1F379C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.166 H 267.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1F379C
RGBrgb(31, 55, 156)
HSLhsl(228, 67%, 37%)
HSVhsv(228, 80%, 61%)
CMYKcmyk(80.1%, 64.7%, 0%, 38.8%)
CIE-LABlab(27.91, 29.22, -57.37)
CIE-LCHlch(27.91, 64.39, 296.99°)
OKLaboklab(38.99% -0.0077 -0.166)
OKLCHoklch(38.99% 0.166 267.4)
XYZxyz(7.9299, 5.4231, 32.0749)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F379C #9C841F
analogous
#1F769C #1F379C #461F9C
triadic
#1F379C #9C1F37 #379C1F
tetradic
#1F379C #9C1F76 #9C841F #1F9C46
square
#1F379C #9C1F76 #9C841F #1F9C46
split-complementary
#1F379C #9C461F #769C1F
monochromatic
#0B1336 #152569 #1F379C #2949CF #5871DE

Accessibility & contrast

On white

10.07
#1F379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F379C
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F379C#FFFFFF#000000##FFFFFF
##1F379C1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f379c;
/* rgb */ color: rgb(31, 55, 156);
/* oklch */ color: oklch(39.0% 0.166 267.4);
Tailwind
colors: {
  custom: {
    50: '#716dba',
    500: '#1f379c',
    950: '#000000',
  },
}
SCSS
$custom: #1f379c;
$custom-light: #716dba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f379c",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 228.48,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38986,
    "c": 0.1662,
    "h": 267.4
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#1F379C
secondary
#C1AD55
accent
#C93EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F379C

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

Preview Lab → · Contrast checker → · Palette generator →

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