#2D52B1#2D52B1

#2D52B1 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.157 H 264.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2D52B1
RGBrgb(45, 82, 177)
HSLhsl(223, 59%, 44%)
HSVhsv(223, 75%, 69%)
CMYKcmyk(74.6%, 53.7%, 0%, 30.6%)
CIE-LABlab(37.42, 20.81, -54.45)
CIE-LCHlch(37.42, 58.29, 290.91°)
OKLaboklab(46.79% -0.0141 -0.1568)
OKLCHoklch(46.79% 0.157 264.9)
XYZxyz(12.0325, 9.7655, 42.8372)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D52B1 #B18C2D
analogous
#2D94B1 #2D52B1 #4A2DB1
triadic
#2D52B1 #B12D52 #52B12D
tetradic
#2D52B1 #B12D94 #B18C2D #2DB14A
square
#2D52B1 #B12D94 #B18C2D #2DB14A
split-complementary
#2D52B1 #B14A2D #94B12D
monochromatic
#14254F #213B80 #2D52B1 #4A70D1 #7B97DD

Accessibility & contrast

On white

7.11
#2D52B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2D52B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D52B1
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D52B1#FFFFFF#000000##FFFFFF
##2D52B11.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095EB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d52b1;
/* rgb */ color: rgb(45, 82, 177);
/* oklch */ color: oklch(46.8% 0.157 264.9);
Tailwind
colors: {
  custom: {
    50: '#7882c9',
    500: '#2d52b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d52b1;
$custom-light: #7882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d52b1",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 223.182,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46795,
    "c": 0.15742,
    "h": 264.9
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#2D52B1
secondary
#C6AF74
accent
#B645E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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