#2F52B5#2F52B5

#2F52B5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.162 H 265.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2F52B5
RGBrgb(47, 82, 181)
HSLhsl(224, 59%, 45%)
HSVhsv(224, 74%, 71%)
CMYKcmyk(74%, 54.7%, 0%, 29%)
CIE-LABlab(37.80, 22.58, -56.19)
CIE-LCHlch(37.80, 60.56, 291.89°)
OKLaboklab(47.2% -0.0121 -0.1619)
OKLCHoklch(47.2% 0.162 265.7)
XYZxyz(12.5271, 9.9738, 44.9720)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B5 #B5922F
analogous
#2F95B5 #2F52B5 #4F2FB5
triadic
#2F52B5 #B52F52 #52B52F
tetradic
#2F52B5 #B52F95 #B5922F #2FB54F
square
#2F52B5 #B52F95 #B5922F #2FB54F
split-complementary
#2F52B5 #B54F2F #95B52F
monochromatic
#162654 #223C84 #2F52B5 #5072D1 #8099DE

Accessibility & contrast

On white

7.01
#2F52B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2F52B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52B5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B5#FFFFFF#000000##FFFFFF
##2F52B51.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f52b5;
/* rgb */ color: rgb(47, 82, 181);
/* oklch */ color: oklch(47.2% 0.162 265.7);
Tailwind
colors: {
  custom: {
    50: '#7a82cc',
    500: '#2f52b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b5;
$custom-light: #7a82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b5",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 224.328,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47196,
    "c": 0.16233,
    "h": 265.7
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

primary
#2F52B5
secondary
#C7B379
accent
#B946E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F52B5

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

Preview Lab → · Contrast checker → · Palette generator →

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