#1F49A1#1F49A1

#1F49A1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.151 H 262.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1F49A1
RGBrgb(31, 73, 161)
HSLhsl(221, 68%, 38%)
HSVhsv(221, 81%, 63%)
CMYKcmyk(80.7%, 54.7%, 0%, 36.9%)
CIE-LABlab(33.20, 18.99, -51.78)
CIE-LCHlch(33.20, 55.15, 290.14°)
OKLaboklab(43.07% -0.0193 -0.1493)
OKLCHoklch(43.07% 0.151 262.6)
XYZxyz(9.3783, 7.6285, 34.6895)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F49A1 #A1771F
analogous
#1F8AA1 #1F49A1 #361FA1
triadic
#1F49A1 #A11F49 #49A11F
tetradic
#1F49A1 #A11F8A #A1771F #1FA136
square
#1F49A1 #A11F8A #A1771F #1FA136
split-complementary
#1F49A1 #A1361F #8AA11F
monochromatic
#0B1A3A #15326E #1F49A1 #2960D4 #5B86DF

Accessibility & contrast

On white

8.31
#1F49A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F49A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F49A1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F49A1#FFFFFF#000000##FFFFFF
##1F49A11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f49a1;
/* rgb */ color: rgb(31, 73, 161);
/* oklch */ color: oklch(43.1% 0.151 262.6);
Tailwind
colors: {
  custom: {
    50: '#717bbd',
    500: '#1f49a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f49a1;
$custom-light: #717bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f49a1",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 161
  },
  "hsl": {
    "h": 220.615,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43074,
    "c": 0.15056,
    "h": 262.6
  },
  "luminance": 0.0763
}

Semantic roles & 50–950 ramp

primary
#1F49A1
secondary
#C4A158
accent
#B33DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F49A1

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

Preview Lab → · Contrast checker → · Palette generator →

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