#1F488F#1F488F

#1F488F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.4% C 0.127 H 260.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1F488F
RGBrgb(31, 72, 143)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 56%)
CMYKcmyk(78.3%, 49.7%, 0%, 43.9%)
CIE-LABlab(31.60, 12.48, -43.43)
CIE-LCHlch(31.60, 45.19, 286.03°)
OKLaboklab(41.44% -0.0207 -0.1248)
OKLCHoklch(41.44% 0.127 260.6)
XYZxyz(7.8386, 6.9083, 26.9016)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F488F #8F661F
analogous
#1F808F #1F488F #2E1F8F
triadic
#1F488F #8F1F48 #488F1F
tetradic
#1F488F #8F1F80 #8F661F #1F8F2E
square
#1F488F #8F1F80 #8F661F #1F8F2E
split-complementary
#1F488F #8F2E1F #808F1F
monochromatic
#09152A #142F5D #1F488F #2A61C1 #4F82D9

Accessibility & contrast

On white

8.82
#1F488F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F488F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F488F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F488F#FFFFFF#000000##FFFFFF
##1F488F1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5092
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f488f;
/* rgb */ color: rgb(31, 72, 143);
/* oklch */ color: oklch(41.4% 0.127 260.6);
Tailwind
colors: {
  custom: {
    50: '#6c7ab0',
    500: '#1f488f',
    950: '#000000',
  },
}
SCSS
$custom: #1f488f;
$custom-light: #6c7ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f488f",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 143
  },
  "hsl": {
    "h": 218.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41438,
    "c": 0.12651,
    "h": 260.6
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#1F488F
secondary
#BC944E
accent
#AA40E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F488F

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

Preview Lab → · Contrast checker → · Palette generator →

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