#2E51A2#2E51A2

#2E51A2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.137 H 264.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2E51A2
RGBrgb(46, 81, 162)
HSLhsl(222, 56%, 41%)
HSVhsv(222, 72%, 64%)
CMYKcmyk(71.6%, 50%, 0%, 36.5%)
CIE-LABlab(36.12, 15.91, -47.61)
CIE-LCHlch(36.12, 50.20, 288.48°)
OKLaboklab(45.49% -0.0141 -0.1367)
OKLCHoklch(45.49% 0.137 264.1)
XYZxyz(10.5884, 9.0732, 35.3687)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51A2 #A27F2E
analogous
#2E8BA2 #2E51A2 #452EA2
triadic
#2E51A2 #A22E51 #51A22E
tetradic
#2E51A2 #A22E8B #A27F2E #2EA245
square
#2E51A2 #A22E8B #A27F2E #2EA245
split-complementary
#2E51A2 #A2452E #8BA22E
monochromatic
#132143 #203972 #2E51A2 #436CCA #7391D7

Accessibility & contrast

On white

7.46
#2E51A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2E51A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51A2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51A2#FFFFFF#000000##FFFFFF
##2E51A21.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e51a2;
/* rgb */ color: rgb(46, 81, 162);
/* oklch */ color: oklch(45.5% 0.137 264.1);
Tailwind
colors: {
  custom: {
    50: '#7681be',
    500: '#2e51a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e51a2;
$custom-light: #7681be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51a2",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 221.897,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45488,
    "c": 0.13739,
    "h": 264.1
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#2E51A2
secondary
#BFA66D
accent
#B249DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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