#2E28A6#2E28A6

#2E28A6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.192 H 274.6°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#2E28A6
RGBrgb(46, 40, 166)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 65%)
CMYKcmyk(72.3%, 75.9%, 0%, 34.9%)
CIE-LABlab(26.31, 43.56, -66.05)
CIE-LCHlch(26.31, 79.12, 303.40°)
OKLaboklab(38.35% 0.0153 -0.191)
OKLCHoklch(38.35% 0.192 274.6)
XYZxyz(8.7662, 4.8507, 36.5433)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E28A6 #A0A628
analogous
#2861A6 #2E28A6 #6D28A6
triadic
#2E28A6 #A62E28 #28A62E
tetradic
#2E28A6 #A62861 #A0A628 #28A66D
square
#2E28A6 #A62861 #A0A628 #28A66D
split-complementary
#2E28A6 #A66D28 #61A628
monochromatic
#131043 #201C75 #2E28A6 #423BD0 #726DDC

Accessibility & contrast

On white

10.66
#2E28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2E28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E28A6
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E28A6#FFFFFF#000000##FFFFFF
##2E28A61.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e28a6;
/* rgb */ color: rgb(46, 40, 166);
/* oklch */ color: oklch(38.3% 0.192 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a64c2',
    500: '#2e28a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e28a6;
$custom-light: #7a64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e28a6",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 242.857,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38347,
    "c": 0.19163,
    "h": 274.6
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#2E28A6
secondary
#BEC267
accent
#E444DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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