#2E54A2#2E54A2

#2E54A2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.1% C 0.134 H 262.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2E54A2
RGBrgb(46, 84, 162)
HSLhsl(220, 56%, 41%)
HSVhsv(220, 72%, 64%)
CMYKcmyk(71.6%, 48.1%, 0%, 36.5%)
CIE-LABlab(36.98, 13.92, -46.23)
CIE-LCHlch(36.98, 48.28, 286.76°)
OKLaboklab(46.14% -0.0168 -0.1325)
OKLCHoklch(46.14% 0.134 262.8)
XYZxyz(10.8163, 9.5290, 35.4447)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54A2 #A27C2E
analogous
#2E8EA2 #2E54A2 #422EA2
triadic
#2E54A2 #A22E54 #54A22E
tetradic
#2E54A2 #A22E8E #A27C2E #2EA242
square
#2E54A2 #A22E8E #A27C2E #2EA242
split-complementary
#2E54A2 #A2422E #8EA22E
monochromatic
#132343 #203B72 #2E54A2 #436FCA #7394D7

Accessibility & contrast

On white

7.23
#2E54A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2E54A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E54A2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54A2#FFFFFF#000000##FFFFFF
##2E54A21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#0D52A0
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e54a2;
/* rgb */ color: rgb(46, 84, 162);
/* oklch */ color: oklch(46.1% 0.134 262.8);
Tailwind
colors: {
  custom: {
    50: '#7583be',
    500: '#2e54a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e54a2;
$custom-light: #7583be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54a2",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 220.345,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46144,
    "c": 0.13361,
    "h": 262.8
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#2E54A2
secondary
#BFA46D
accent
#AE49DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E54A2

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

Preview Lab → · Contrast checker → · Palette generator →

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