#2F52B4#2F52B4

#2F52B4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.161 H 265.6°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2F52B4
RGBrgb(47, 82, 180)
HSLhsl(224, 59%, 45%)
HSVhsv(224, 74%, 71%)
CMYKcmyk(73.9%, 54.4%, 0%, 29.4%)
CIE-LABlab(37.72, 22.20, -55.72)
CIE-LCHlch(37.72, 59.98, 291.72°)
OKLaboklab(47.12% -0.0122 -0.1605)
OKLCHoklch(47.12% 0.161 265.6)
XYZxyz(12.4249, 9.9329, 44.4336)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B4 #B4912F
analogous
#2F94B4 #2F52B4 #4F2FB4
triadic
#2F52B4 #B42F52 #52B42F
tetradic
#2F52B4 #B42F94 #B4912F #2FB44F
square
#2F52B4 #B42F94 #B4912F #2FB44F
split-complementary
#2F52B4 #B44F2F #94B42F
monochromatic
#162653 #223C83 #2F52B4 #4F71D1 #8098DE

Accessibility & contrast

On white

7.03
#2F52B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F52B4
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B4#FFFFFF#000000##FFFFFF
##2F52B41.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f52b4;
/* rgb */ color: rgb(47, 82, 180);
/* oklch */ color: oklch(47.1% 0.161 265.6);
Tailwind
colors: {
  custom: {
    50: '#7a82cb',
    500: '#2f52b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b4;
$custom-light: #7a82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b4",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 224.211,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47117,
    "c": 0.16096,
    "h": 265.6
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F52B4

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

Preview Lab → · Contrast checker → · Palette generator →

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