#2E28BB#2E28BB

#2E28BB is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.217 H 272.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2E28BB
RGBrgb(46, 40, 187)
HSLhsl(242, 65%, 45%)
HSVhsv(242, 79%, 73%)
CMYKcmyk(75.4%, 78.6%, 0%, 26.7%)
CIE-LABlab(28.60, 50.31, -74.81)
CIE-LCHlch(28.60, 90.15, 303.92°)
OKLaboklab(40.64% 0.0108 -0.2165)
OKLCHoklch(40.64% 0.217 272.9)
XYZxyz(10.8521, 5.6851, 47.5295)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28BB #B5BB28
analogous
#286CBB #2E28BB #7828BB
triadic
#2E28BB #BB2E28 #28BB2E
tetradic
#2E28BB #BB286C #B5BB28 #28BB78
square
#2E28BB #BB286C #B5BB28 #28BB78
split-complementary
#2E28BB #BB7828 #6CBB28
monochromatic
#151256 #221D89 #2E28BB #4E48D8 #7F7BE3

Accessibility & contrast

On white

9.83
#2E28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28BB
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28BB#FFFFFF#000000##FFFFFF
##2E28BB1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e28bb;
/* rgb */ color: rgb(46, 40, 187);
/* oklch */ color: oklch(40.6% 0.217 272.9);
Tailwind
colors: {
  custom: {
    50: '#7f65d1',
    500: '#2e28bb',
    950: '#000000',
  },
}
SCSS
$custom: #2e28bb;
$custom-light: #7f65d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28bb",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 242.449,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40639,
    "c": 0.21676,
    "h": 272.9
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#2E28BB
secondary
#C7CB74
accent
#E840E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2E28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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