#2F52C4#2F52C4

#2F52C4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.4% C 0.183 H 266.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2F52C4
RGBrgb(47, 82, 196)
HSLhsl(226, 61%, 48%)
HSVhsv(226, 76%, 77%)
CMYKcmyk(76%, 58.2%, 0%, 23.1%)
CIE-LABlab(38.94, 28.20, -63.12)
CIE-LCHlch(38.94, 69.13, 294.07°)
OKLaboklab(48.41% -0.0113 -0.1822)
OKLCHoklch(48.41% 0.183 266.4)
XYZxyz(14.1499, 10.6229, 53.5185)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52C4 #C4A12F
analogous
#2F9CC4 #2F52C4 #562FC4
triadic
#2F52C4 #C42F52 #52C42F
tetradic
#2F52C4 #C42F9C #C4A12F #2FC456
square
#2F52C4 #C42F9C #C4A12F #2FC456
split-complementary
#2F52C4 #C4562F #9CC42F
monochromatic
#172961 #233D93 #2F52C4 #5977D7 #8A9FE3

Accessibility & contrast

On white

6.72
#2F52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52C4
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52C4#FFFFFF#000000##FFFFFF
##2F52C41.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f52c4;
/* rgb */ color: rgb(47, 82, 196);
/* oklch */ color: oklch(48.4% 0.183 266.4);
Tailwind
colors: {
  custom: {
    50: '#7e82d7',
    500: '#2f52c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f52c4;
$custom-light: #7e82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52c4",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 225.906,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48414,
    "c": 0.18258,
    "h": 266.4
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#2F52C4
secondary
#CDBB82
accent
#BF43E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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