#1F478B#1F478B

#1F478B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 40.9% C 0.122 H 260.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1F478B
RGBrgb(31, 71, 139)
HSLhsl(218, 64%, 33%)
HSVhsv(218, 78%, 55%)
CMYKcmyk(77.7%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.02, 11.55, -41.90)
CIE-LCHlch(31.02, 43.47, 285.42°)
OKLaboklab(40.91% -0.0205 -0.1203)
OKLCHoklch(40.91% 0.122 260.3)
XYZxyz(7.4768, 6.6610, 25.3127)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F478B #8B631F
analogous
#1F7D8B #1F478B #2D1F8B
triadic
#1F478B #8B1F47 #478B1F
tetradic
#1F478B #8B1F7D #8B631F #1F8B2D
square
#1F478B #8B1F7D #8B631F #1F8B2D
split-complementary
#1F478B #8B2D1F #7D8B1F
monochromatic
#091427 #142D59 #1F478B #2A61BD #4D80D7

Accessibility & contrast

On white

9.00
#1F478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F478B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F478B#FFFFFF#000000##FFFFFF
##1F478B1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8E
Deuteranopia (green-blind)
#01448A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f478b;
/* rgb */ color: rgb(31, 71, 139);
/* oklch */ color: oklch(40.9% 0.122 260.3);
Tailwind
colors: {
  custom: {
    50: '#6b79ad',
    500: '#1f478b',
    950: '#000000',
  },
}
SCSS
$custom: #1f478b;
$custom-light: #6b79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f478b",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 217.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40908,
    "c": 0.12205,
    "h": 260.3
  },
  "luminance": 0.06662
}

Semantic roles & 50–950 ramp

primary
#1F478B
secondary
#BA914C
accent
#A941E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F478B

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

Preview Lab → · Contrast checker → · Palette generator →

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