#2F49B5#2F49B5

#2F49B5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.173 H 268.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2F49B5
RGBrgb(47, 73, 181)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(74%, 59.7%, 0%, 29%)
CIE-LABlab(35.41, 28.49, -60.07)
CIE-LCHlch(35.41, 66.49, 295.37°)
OKLaboklab(45.41% -0.0054 -0.1734)
OKLCHoklch(45.41% 0.174 268.2)
XYZxyz(11.8924, 8.7044, 44.7605)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F49B5 #B59B2F
analogous
#2F8CB5 #2F49B5 #582FB5
triadic
#2F49B5 #B52F49 #49B52F
tetradic
#2F49B5 #B52F8C #B59B2F #2FB558
square
#2F49B5 #B52F8C #B59B2F #2FB558
split-complementary
#2F49B5 #B5582F #8CB52F
monochromatic
#162254 #223584 #2F49B5 #5069D1 #8093DE

Accessibility & contrast

On white

7.66
#2F49B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F49B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F49B5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F49B5#FFFFFF#000000##FFFFFF
##2F49B51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f49b5;
/* rgb */ color: rgb(47, 73, 181);
/* oklch */ color: oklch(45.4% 0.173 268.2);
Tailwind
colors: {
  custom: {
    50: '#7b7bcc',
    500: '#2f49b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f49b5;
$custom-light: #7b7bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f49b5",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 181
  },
  "hsl": {
    "h": 228.358,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45406,
    "c": 0.1735,
    "h": 268.2
  },
  "luminance": 0.08706
}

Semantic roles & 50–950 ramp

primary
#2F49B5
secondary
#C7B879
accent
#C446E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F49B5

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

Preview Lab → · Contrast checker → · Palette generator →

#2F49B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva