#2E52A2#2E52A2

#2E52A2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.136 H 263.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2E52A2
RGBrgb(46, 82, 162)
HSLhsl(221, 56%, 41%)
HSVhsv(221, 72%, 64%)
CMYKcmyk(71.6%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.41, 15.24, -47.15)
CIE-LCHlch(36.41, 49.56, 287.92°)
OKLaboklab(45.71% -0.015 -0.1353)
OKLCHoklch(45.71% 0.136 263.7)
XYZxyz(10.6633, 9.2230, 35.3937)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E52A2 #A27E2E
analogous
#2E8CA2 #2E52A2 #442EA2
triadic
#2E52A2 #A22E52 #52A22E
tetradic
#2E52A2 #A22E8C #A27E2E #2EA244
square
#2E52A2 #A22E8C #A27E2E #2EA244
split-complementary
#2E52A2 #A2442E #8CA22E
monochromatic
#132243 #203A72 #2E52A2 #436DCA #7392D7

Accessibility & contrast

On white

7.38
#2E52A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2E52A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E52A2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E52A2#FFFFFF#000000##FFFFFF
##2E52A21.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA5
Deuteranopia (green-blind)
#0151A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e52a2;
/* rgb */ color: rgb(46, 82, 162);
/* oklch */ color: oklch(45.7% 0.136 263.7);
Tailwind
colors: {
  custom: {
    50: '#7682be',
    500: '#2e52a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e52a2;
$custom-light: #7682be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e52a2",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 221.379,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.13613,
    "h": 263.7
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#2E52A2
secondary
#BFA56D
accent
#B049DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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