#2E28A8#2E28A8

#2E28A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.194 H 274.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2E28A8
RGBrgb(46, 40, 168)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 76%, 66%)
CMYKcmyk(72.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.52, 44.21, -66.90)
CIE-LCHlch(26.52, 80.19, 303.46°)
OKLaboklab(38.56% 0.0149 -0.1935)
OKLCHoklch(38.56% 0.194 274.4)
XYZxyz(8.9510, 4.9247, 37.5170)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A8 #A2A828
analogous
#2862A8 #2E28A8 #6E28A8
triadic
#2E28A8 #A82E28 #28A82E
tetradic
#2E28A8 #A82862 #A2A828 #28A86E
square
#2E28A8 #A82862 #A2A828 #28A86E
split-complementary
#2E28A8 #A86E28 #62A828
monochromatic
#131045 #201C77 #2E28A8 #433DD1 #736EDC

Accessibility & contrast

On white

10.58
#2E28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2E28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28A8
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A8#FFFFFF#000000##FFFFFF
##2E28A81.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e28a8;
/* rgb */ color: rgb(46, 40, 168);
/* oklch */ color: oklch(38.6% 0.194 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a64c3',
    500: '#2e28a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a8;
$custom-light: #7a64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a8",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 242.813,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38562,
    "c": 0.19408,
    "h": 274.4
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#2E28A8
secondary
#BFC369
accent
#E543DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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