#2E28AB#2E28AB

#2E28AB is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.9% C 0.198 H 274.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2E28AB
RGBrgb(46, 40, 171)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 77%, 67%)
CMYKcmyk(73.1%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.84, 45.19, -68.18)
CIE-LCHlch(26.84, 81.79, 303.54°)
OKLaboklab(38.89% 0.0143 -0.1972)
OKLCHoklch(38.89% 0.198 274.1)
XYZxyz(9.2337, 5.0378, 39.0059)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28AB #A5AB28
analogous
#2864AB #2E28AB #7028AB
triadic
#2E28AB #AB2E28 #28AB2E
tetradic
#2E28AB #AB2864 #A5AB28 #28AB70
square
#2E28AB #AB2864 #A5AB28 #28AB70
split-complementary
#2E28AB #AB7028 #64AB28
monochromatic
#131148 #211C79 #2E28AB #453ED2 #7570DE

Accessibility & contrast

On white

10.46
#2E28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2E28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28AB
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28AB#FFFFFF#000000##FFFFFF
##2E28AB1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e28ab;
/* rgb */ color: rgb(46, 40, 171);
/* oklch */ color: oklch(38.9% 0.198 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b64c5',
    500: '#2e28ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e28ab;
$custom-light: #7b64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28ab",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 242.748,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38885,
    "c": 0.19773,
    "h": 274.1
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#2E28AB
secondary
#C0C46A
accent
#E543DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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