#1F488C#1F488C

#1F488C is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.2% C 0.122 H 260.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#1F488C
RGBrgb(31, 72, 140)
HSLhsl(217, 64%, 34%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(77.9%, 48.6%, 0%, 45.1%)
CIE-LABlab(31.39, 11.27, -41.93)
CIE-LCHlch(31.39, 43.42, 285.05°)
OKLaboklab(41.21% -0.0212 -0.1204)
OKLCHoklch(41.21% 0.122 260)
XYZxyz(7.6143, 6.8186, 25.7207)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F488C #8C631F
analogous
#1F7E8C #1F488C #2C1F8C
triadic
#1F488C #8C1F48 #488C1F
tetradic
#1F488C #8C1F7E #8C631F #1F8C2C
square
#1F488C #8C1F7E #8C631F #1F8C2C
split-complementary
#1F488C #8C2C1F #7E8C1F
monochromatic
#091428 #142E5A #1F488C #2A62BE #4E82D8

Accessibility & contrast

On white

8.88
#1F488C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F488C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F488C
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F488C#FFFFFF#000000##FFFFFF
##1F488C1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#03458B
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f488c;
/* rgb */ color: rgb(31, 72, 140);
/* oklch */ color: oklch(41.2% 0.122 260.0);
Tailwind
colors: {
  custom: {
    50: '#6b7aae',
    500: '#1f488c',
    950: '#000000',
  },
}
SCSS
$custom: #1f488c;
$custom-light: #6b7aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f488c",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 140
  },
  "hsl": {
    "h": 217.431,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41213,
    "c": 0.12222,
    "h": 260
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#1F488C
secondary
#BB914C
accent
#A841E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F488C

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

Preview Lab → · Contrast checker → · Palette generator →

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