#1F498F#1F498F

#1F498F is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.125 H 260.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#1F498F
RGBrgb(31, 73, 143)
HSLhsl(218, 64%, 34%)
HSVhsv(218, 78%, 56%)
CMYKcmyk(78.3%, 49%, 0%, 43.9%)
CIE-LABlab(31.89, 11.80, -42.95)
CIE-LCHlch(31.89, 44.54, 285.36°)
OKLaboklab(41.67% -0.0216 -0.1234)
OKLCHoklch(41.67% 0.125 260.1)
XYZxyz(7.9037, 7.0387, 26.9233)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F498F #8F651F
analogous
#1F818F #1F498F #2D1F8F
triadic
#1F498F #8F1F49 #498F1F
tetradic
#1F498F #8F1F81 #8F651F #1F8F2D
square
#1F498F #8F1F81 #8F651F #1F8F2D
split-complementary
#1F498F #8F2D1F #818F1F
monochromatic
#09162A #142F5D #1F498F #2A63C1 #4F83D9

Accessibility & contrast

On white

8.72
#1F498F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F498F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F498F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F498F#FFFFFF#000000##FFFFFF
##1F498F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225092
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f498f;
/* rgb */ color: rgb(31, 73, 143);
/* oklch */ color: oklch(41.7% 0.125 260.1);
Tailwind
colors: {
  custom: {
    50: '#6c7bb0',
    500: '#1f498f',
    950: '#000000',
  },
}
SCSS
$custom: #1f498f;
$custom-light: #6c7bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f498f",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 143
  },
  "hsl": {
    "h": 217.5,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.12525,
    "h": 260.1
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#1F498F
secondary
#BC934E
accent
#A940E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F498F

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

Preview Lab → · Contrast checker → · Palette generator →

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