#1F488B#1F488B

#1F488B is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.1% C 0.121 H 259.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#1F488B
RGBrgb(31, 72, 139)
HSLhsl(217, 64%, 33%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(77.7%, 48.2%, 0%, 45.5%)
CIE-LABlab(31.32, 10.87, -41.42)
CIE-LCHlch(31.32, 42.82, 284.71°)
OKLaboklab(41.14% -0.0214 -0.1189)
OKLCHoklch(41.14% 0.121 259.8)
XYZxyz(7.5409, 6.7893, 25.3341)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F488B #8B621F
analogous
#1F7E8B #1F488B #2C1F8B
triadic
#1F488B #8B1F48 #488B1F
tetradic
#1F488B #8B1F7E #8B621F #1F8B2C
square
#1F488B #8B1F7E #8B621F #1F8B2C
split-complementary
#1F488B #8B2C1F #7E8B1F
monochromatic
#091427 #142E59 #1F488B #2A62BD #4D82D7

Accessibility & contrast

On white

8.91
#1F488B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F488B
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F488B#FFFFFF#000000##FFFFFF
##1F488B1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#06458A
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f488b;
/* rgb */ color: rgb(31, 72, 139);
/* oklch */ color: oklch(41.1% 0.121 259.8);
Tailwind
colors: {
  custom: {
    50: '#6b7aad',
    500: '#1f488b',
    950: '#000000',
  },
}
SCSS
$custom: #1f488b;
$custom-light: #6b7aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f488b",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 139
  },
  "hsl": {
    "h": 217.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.41138,
    "c": 0.12079,
    "h": 259.8
  },
  "luminance": 0.0679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F488B

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

Preview Lab → · Contrast checker → · Palette generator →

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