#2F52D3#2F52D3

#2F52D3 is a mid, highly saturated blue. Relative luminance 0.113; OKLCH L 49.7% C 0.202 H 266.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2F52D3
RGBrgb(47, 82, 211)
HSLhsl(227, 65%, 51%)
HSVhsv(227, 78%, 83%)
CMYKcmyk(77.7%, 61.1%, 0%, 17.3%)
CIE-LABlab(40.15, 33.73, -69.82)
CIE-LCHlch(40.15, 77.54, 295.79°)
OKLaboklab(49.69% -0.0111 -0.2019)
OKLCHoklch(49.69% 0.202 266.9)
XYZxyz(15.9433, 11.3402, 62.9640)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F52D3 #D3B02F
analogous
#2FA4D3 #2F52D3 #5E2FD3
triadic
#2F52D3 #D32F52 #52D32F
tetradic
#2F52D3 #D32FA4 #D3B02F #2FD35E
square
#2F52D3 #D32FA4 #D3B02F #2FD35E
split-complementary
#2F52D3 #D35E2F #A4D32F
monochromatic
#182B70 #223EA2 #2F52D3 #627CDE #94A6E8

Accessibility & contrast

On white

6.43
#2F52D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2F52D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F52D3
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F52D3#FFFFFF#000000##FFFFFF
##2F52D31.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f52d3;
/* rgb */ color: rgb(47, 82, 211);
/* oklch */ color: oklch(49.7% 0.202 266.9);
Tailwind
colors: {
  custom: {
    50: '#8182e2',
    500: '#2f52d3',
    950: '#000000',
  },
}
SCSS
$custom: #2f52d3;
$custom-light: #8182e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f52d3",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 227.195,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49692,
    "c": 0.20221,
    "h": 266.9
  },
  "luminance": 0.11342
}

Semantic roles & 50–950 ramp

primary
#2F52D3
secondary
#D3C48A
accent
#C440E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2F52D3

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

Preview Lab → · Contrast checker → · Palette generator →

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