#2D52B3#2D52B3

#2D52B3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.160 H 265.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2D52B3
RGBrgb(45, 82, 179)
HSLhsl(223, 60%, 44%)
HSVhsv(223, 75%, 70%)
CMYKcmyk(74.9%, 54.2%, 0%, 29.8%)
CIE-LABlab(37.56, 21.57, -55.39)
CIE-LCHlch(37.56, 59.44, 291.27°)
OKLaboklab(46.95% -0.0139 -0.1596)
OKLCHoklch(46.95% 0.16 265)
XYZxyz(12.2333, 9.8458, 43.8948)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52B3 #B38E2D
analogous
#2D95B3 #2D52B3 #4B2DB3
triadic
#2D52B3 #B32D52 #52B32D
tetradic
#2D52B3 #B32D95 #B38E2D #2DB34B
square
#2D52B3 #B32D95 #B38E2D #2DB34B
split-complementary
#2D52B3 #B34B2D #95B32D
monochromatic
#142551 #213C82 #2D52B3 #4B70D2 #7C97DE

Accessibility & contrast

On white

7.07
#2D52B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D52B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D52B3
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52B3#FFFFFF#000000##FFFFFF
##2D52B31.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025FB6
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d52b3;
/* rgb */ color: rgb(45, 82, 179);
/* oklch */ color: oklch(47.0% 0.160 265.0);
Tailwind
colors: {
  custom: {
    50: '#7982ca',
    500: '#2d52b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d52b3;
$custom-light: #7982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52b3",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 223.433,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46952,
    "c": 0.16018,
    "h": 265
  },
  "luminance": 0.09847
}

Semantic roles & 50–950 ramp

primary
#2D52B3
secondary
#C7B075
accent
#B745E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D52B3

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

Preview Lab → · Contrast checker → · Palette generator →

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