#2F52C3#2F52C3

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

Color values

HEX#2F52C3
RGBrgb(47, 82, 195)
HSLhsl(226, 61%, 47%)
HSVhsv(226, 76%, 76%)
CMYKcmyk(75.9%, 57.9%, 0%, 23.5%)
CIE-LABlab(38.86, 27.82, -62.66)
CIE-LCHlch(38.86, 68.56, 293.94°)
OKLaboklab(48.33% -0.0114 -0.1809)
OKLCHoklch(48.33% 0.181 266.4)
XYZxyz(14.0365, 10.5775, 52.9211)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52C3 #C3A02F
analogous
#2F9CC3 #2F52C3 #562FC3
triadic
#2F52C3 #C32F52 #52C32F
tetradic
#2F52C3 #C32F9C #C3A02F #2FC356
square
#2F52C3 #C32F9C #C3A02F #2FC356
split-complementary
#2F52C3 #C3562F #9CC32F
monochromatic
#172960 #233D92 #2F52C3 #5876D7 #8A9FE3

Accessibility & contrast

On white

6.74
#2F52C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F52C3
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52C3#FFFFFF#000000##FFFFFF
##2F52C31.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f52c3;
/* rgb */ color: rgb(47, 82, 195);
/* oklch */ color: oklch(48.3% 0.181 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d82d6',
    500: '#2f52c3',
    950: '#000000',
  },
}
SCSS
$custom: #2f52c3;
$custom-light: #7d82d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52c3",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 195
  },
  "hsl": {
    "h": 225.811,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48331,
    "c": 0.18126,
    "h": 266.4
  },
  "luminance": 0.10579
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F52C3

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

Preview Lab → · Contrast checker → · Palette generator →

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