#1F378C#1F378C

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

Color values

HEX#1F378C
RGBrgb(31, 55, 140)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 55%)
CMYKcmyk(77.9%, 60.7%, 0%, 45.1%)
CIE-LABlab(26.50, 23.00, -49.86)
CIE-LCHlch(26.50, 54.90, 294.76°)
OKLaboklab(37.5% -0.0076 -0.144)
OKLCHoklch(37.5% 0.144 267)
XYZxyz(6.6632, 4.9164, 25.4036)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F378C #8C741F
analogous
#1F6D8C #1F378C #3D1F8C
triadic
#1F378C #8C1F37 #378C1F
tetradic
#1F378C #8C1F6D #8C741F #1F8C3D
square
#1F378C #8C1F6D #8C741F #1F8C3D
split-complementary
#1F378C #8C3D1F #6D8C1F
monochromatic
#091028 #14235A #1F378C #2A4BBE #4E6CD8

Accessibility & contrast

On white

10.59
#1F378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F378C
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F378C#FFFFFF#000000##FFFFFF
##1F378C1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f378c;
/* rgb */ color: rgb(31, 55, 140);
/* oklch */ color: oklch(37.5% 0.144 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c6dae',
    500: '#1f378c',
    950: '#000000',
  },
}
SCSS
$custom: #1f378c;
$custom-light: #6c6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f378c",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 226.789,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37502,
    "c": 0.14419,
    "h": 267
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#1F378C
secondary
#BBA24C
accent
#C241E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F378C

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

Preview Lab → · Contrast checker → · Palette generator →

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