#1F378E#1F378E

#1F378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.147 H 267.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#1F378E
RGBrgb(31, 55, 142)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 56%)
CMYKcmyk(78.2%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.67, 23.78, -50.82)
CIE-LCHlch(26.67, 56.11, 295.08°)
OKLaboklab(37.68% -0.0076 -0.1468)
OKLCHoklch(37.68% 0.147 267.1)
XYZxyz(6.8120, 4.9759, 26.1874)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F378E #8E761F
analogous
#1F6F8E #1F378E #3F1F8E
triadic
#1F378E #8E1F37 #378E1F
tetradic
#1F378E #8E1F6F #8E761F #1F8E3F
square
#1F378E #8E1F6F #8E761F #1F8E3F
split-complementary
#1F378E #8E3F1F #6F8E1F
monochromatic
#09102A #14245C #1F378E #2A4AC0 #4F6DD9

Accessibility & contrast

On white

10.52
#1F378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F378E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F378E#FFFFFF#000000##FFFFFF
##1F378E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f378e;
/* rgb */ color: rgb(31, 55, 142);
/* oklch */ color: oklch(37.7% 0.147 267.1);
Tailwind
colors: {
  custom: {
    50: '#6d6db0',
    500: '#1f378e',
    950: '#000000',
  },
}
SCSS
$custom: #1f378e;
$custom-light: #6d6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f378e",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 227.027,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37683,
    "c": 0.147,
    "h": 267.1
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#1F378E
secondary
#BBA44D
accent
#C341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F378E

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

Preview Lab → · Contrast checker → · Palette generator →

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