#1F378D#1F378D

#1F378D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.146 H 267.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#1F378D
RGBrgb(31, 55, 141)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 55%)
CMYKcmyk(78%, 61%, 0%, 44.7%)
CIE-LABlab(26.58, 23.39, -50.34)
CIE-LCHlch(26.58, 55.51, 294.92°)
OKLaboklab(37.59% -0.0076 -0.1454)
OKLCHoklch(37.59% 0.146 267)
XYZxyz(6.7373, 4.9460, 25.7937)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F378D #8D751F
analogous
#1F6E8D #1F378D #3E1F8D
triadic
#1F378D #8D1F37 #378D1F
tetradic
#1F378D #8D1F6E #8D751F #1F8D3E
square
#1F378D #8D1F6E #8D751F #1F8D3E
split-complementary
#1F378D #8D3E1F #6E8D1F
monochromatic
#091029 #14235B #1F378D #2A4BBF #4E6CD8

Accessibility & contrast

On white

10.56
#1F378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F378D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F378D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F378D#FFFFFF#000000##FFFFFF
##1F378D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f378d;
/* rgb */ color: rgb(31, 55, 141);
/* oklch */ color: oklch(37.6% 0.146 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6daf',
    500: '#1f378d',
    950: '#000000',
  },
}
SCSS
$custom: #1f378d;
$custom-light: #6d6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f378d",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 226.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37592,
    "c": 0.1456,
    "h": 267
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#1F378D
secondary
#BBA34D
accent
#C341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F378D

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

Preview Lab → · Contrast checker → · Palette generator →

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