#2D52A8#2D52A8

#2D52A8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.145 H 264.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2D52A8
RGBrgb(45, 82, 168)
HSLhsl(222, 58%, 42%)
HSVhsv(222, 73%, 66%)
CMYKcmyk(73.2%, 51.2%, 0%, 34.1%)
CIE-LABlab(36.78, 17.38, -50.15)
CIE-LCHlch(36.78, 53.07, 289.12°)
OKLaboklab(46.11% -0.015 -0.1441)
OKLCHoklch(46.11% 0.145 264)
XYZxyz(11.1649, 9.4184, 38.2677)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52A8 #A8832D
analogous
#2D90A8 #2D52A8 #462DA8
triadic
#2D52A8 #A82D52 #52A82D
tetradic
#2D52A8 #A82D90 #A8832D #2DA846
square
#2D52A8 #A82D90 #A8832D #2DA846
split-complementary
#2D52A8 #A8462D #90A82D
monochromatic
#132347 #203A78 #2D52A8 #456ECD #7594DA

Accessibility & contrast

On white

7.28
#2D52A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2D52A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D52A8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52A8#FFFFFF#000000##FFFFFF
##2D52A81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d52a8;
/* rgb */ color: rgb(45, 82, 168);
/* oklch */ color: oklch(46.1% 0.145 264.0);
Tailwind
colors: {
  custom: {
    50: '#7682c2',
    500: '#2d52a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d52a8;
$custom-light: #7682c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52a8",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 168
  },
  "hsl": {
    "h": 221.951,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46105,
    "c": 0.1449,
    "h": 264
  },
  "luminance": 0.0942
}

Semantic roles & 50–950 ramp

primary
#2D52A8
secondary
#C2A96F
accent
#B347E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2D52A8

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

Preview Lab → · Contrast checker → · Palette generator →

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