#1F378F#1F378F

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

Color values

HEX#1F378F
RGBrgb(31, 55, 143)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 56%)
CMYKcmyk(78.3%, 61.5%, 0%, 43.9%)
CIE-LABlab(26.75, 24.18, -51.29)
CIE-LCHlch(26.75, 56.71, 295.24°)
OKLaboklab(37.77% -0.0075 -0.1482)
OKLCHoklch(37.77% 0.148 267.1)
XYZxyz(6.8875, 5.0061, 26.5846)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F378F #8F771F
analogous
#1F6F8F #1F378F #3F1F8F
triadic
#1F378F #8F1F37 #378F1F
tetradic
#1F378F #8F1F6F #8F771F #1F8F3F
square
#1F378F #8F1F6F #8F771F #1F8F3F
split-complementary
#1F378F #8F3F1F #6F8F1F
monochromatic
#09102A #14245D #1F378F #2A4AC1 #4F6DD9

Accessibility & contrast

On white

10.49
#1F378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F378F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F378F#FFFFFF#000000##FFFFFF
##1F378F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f378f;
/* rgb */ color: rgb(31, 55, 143);
/* oklch */ color: oklch(37.8% 0.148 267.1);
Tailwind
colors: {
  custom: {
    50: '#6d6db1',
    500: '#1f378f',
    950: '#000000',
  },
}
SCSS
$custom: #1f378f;
$custom-light: #6d6db1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f378f",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 227.143,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37773,
    "c": 0.1484,
    "h": 267.1
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#1F378F
secondary
#BCA44E
accent
#C440E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F378F

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

Preview Lab → · Contrast checker → · Palette generator →

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