#2E54AB#2E54AB

#2E54AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.8% C 0.146 H 263.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2E54AB
RGBrgb(46, 84, 171)
HSLhsl(222, 58%, 43%)
HSVhsv(222, 73%, 67%)
CMYKcmyk(73.1%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.59, 17.34, -50.61)
CIE-LCHlch(37.59, 53.50, 288.91°)
OKLaboklab(46.8% -0.0156 -0.1454)
OKLCHoklch(46.8% 0.146 263.9)
XYZxyz(11.6451, 9.8605, 39.8097)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E54AB #AB852E
analogous
#2E93AB #2E54AB #462EAB
triadic
#2E54AB #AB2E54 #54AB2E
tetradic
#2E54AB #AB2E93 #AB852E #2EAB46
square
#2E54AB #AB2E93 #AB852E #2EAB46
split-complementary
#2E54AB #AB462E #93AB2E
monochromatic
#14254B #213C7B #2E54AB #4871CE #7996DB

Accessibility & contrast

On white

7.06
#2E54AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E54AB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E54AB#FFFFFF#000000##FFFFFF
##2E54AB1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e54ab;
/* rgb */ color: rgb(46, 84, 171);
/* oklch */ color: oklch(46.8% 0.146 263.9);
Tailwind
colors: {
  custom: {
    50: '#7783c5',
    500: '#2e54ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e54ab;
$custom-light: #7783c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e54ab",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 221.76,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46803,
    "c": 0.14628,
    "h": 263.9
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#2E54AB
secondary
#C3AA72
accent
#B247E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E54AB

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

Preview Lab → · Contrast checker → · Palette generator →

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