#2F52B1#2F52B1

#2F52B1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.157 H 265.4°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2F52B1
RGBrgb(47, 82, 177)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 73%, 69%)
CMYKcmyk(73.4%, 53.7%, 0%, 30.6%)
CIE-LABlab(37.50, 21.07, -54.31)
CIE-LCHlch(37.50, 58.25, 291.20°)
OKLaboklab(46.88% -0.0125 -0.1563)
OKLCHoklch(46.88% 0.157 265.4)
XYZxyz(12.1226, 9.8120, 42.8415)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52B1 #B18E2F
analogous
#2F93B1 #2F52B1 #4D2FB1
triadic
#2F52B1 #B12F52 #52B12F
tetradic
#2F52B1 #B12F93 #B18E2F #2FB14D
square
#2F52B1 #B12F93 #B18E2F #2FB14D
split-complementary
#2F52B1 #B14D2F #93B12F
monochromatic
#152550 #223C81 #2F52B1 #4D70D0 #7E97DD

Accessibility & contrast

On white

7.09
#2F52B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2F52B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F52B1
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52B1#FFFFFF#000000##FFFFFF
##2F52B11.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB4
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f52b1;
/* rgb */ color: rgb(47, 82, 177);
/* oklch */ color: oklch(46.9% 0.157 265.4);
Tailwind
colors: {
  custom: {
    50: '#7982c9',
    500: '#2f52b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f52b1;
$custom-light: #7982c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52b1",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 223.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46882,
    "c": 0.15684,
    "h": 265.4
  },
  "luminance": 0.09813
}

Semantic roles & 50–950 ramp

primary
#2F52B1
secondary
#C5B076
accent
#B847E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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