#2D52C8#2D52C8

#2D52C8 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.188 H 266.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2D52C8
RGBrgb(45, 82, 200)
HSLhsl(226, 63%, 48%)
HSVhsv(226, 78%, 78%)
CMYKcmyk(77.5%, 59%, 0%, 21.6%)
CIE-LABlab(39.17, 29.47, -65.06)
CIE-LCHlch(39.17, 71.42, 294.37°)
OKLaboklab(48.67% -0.0128 -0.188)
OKLCHoklch(48.67% 0.188 266.1)
XYZxyz(14.5211, 10.7609, 55.9441)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52C8 #C8A32D
analogous
#2DA0C8 #2D52C8 #552DC8
triadic
#2D52C8 #C82D52 #52C82D
tetradic
#2D52C8 #C82DA0 #C8A32D #2DC855
square
#2D52C8 #C82DA0 #C8A32D #2DC855
split-complementary
#2D52C8 #C8552D #A0C82D
monochromatic
#172964 #223E96 #2D52C8 #5977DA #8BA0E5

Accessibility & contrast

On white

6.66
#2D52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2D52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D52C8
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52C8#FFFFFF#000000##FFFFFF
##2D52C81.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2d52c8;
/* rgb */ color: rgb(45, 82, 200);
/* oklch */ color: oklch(48.7% 0.188 266.1);
Tailwind
colors: {
  custom: {
    50: '#7e82da',
    500: '#2d52c8',
    950: '#000000',
  },
}
SCSS
$custom: #2d52c8;
$custom-light: #7e82da;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52c8",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 225.677,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48668,
    "c": 0.18841,
    "h": 266.1
  },
  "luminance": 0.10763
}

Semantic roles & 50–950 ramp

primary
#2D52C8
secondary
#CFBC82
accent
#BF41E6
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2D52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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