#2F52C2#2F52C2

#2F52C2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.180 H 266.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2F52C2
RGBrgb(47, 82, 194)
HSLhsl(226, 61%, 47%)
HSVhsv(226, 76%, 76%)
CMYKcmyk(75.8%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.78, 27.45, -62.21)
CIE-LCHlch(38.78, 68.00, 293.81°)
OKLaboklab(48.25% -0.0114 -0.1796)
OKLCHoklch(48.25% 0.18 266.4)
XYZxyz(13.9238, 10.5324, 52.3276)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52C2 #C29F2F
analogous
#2F9CC2 #2F52C2 #552FC2
triadic
#2F52C2 #C22F52 #52C22F
tetradic
#2F52C2 #C22F9C #C29F2F #2FC255
square
#2F52C2 #C22F9C #C29F2F #2FC255
split-complementary
#2F52C2 #C2552F #9CC22F
monochromatic
#17285F #233D91 #2F52C2 #5876D6 #899EE2

Accessibility & contrast

On white

6.76
#2F52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52C2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52C2#FFFFFF#000000##FFFFFF
##2F52C21.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f52c2;
/* rgb */ color: rgb(47, 82, 194);
/* oklch */ color: oklch(48.2% 0.180 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d82d5',
    500: '#2f52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2f52c2;
$custom-light: #7d82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52c2",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 225.714,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48248,
    "c": 0.17992,
    "h": 266.4
  },
  "luminance": 0.10534
}

Semantic roles & 50–950 ramp

primary
#2F52C2
secondary
#CCBA81
accent
#BE44E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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