#2E26A2#2E26A2

#2E26A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.189 H 275.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2E26A2
RGBrgb(46, 38, 162)
HSLhsl(244, 62%, 39%)
HSVhsv(244, 77%, 64%)
CMYKcmyk(71.6%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.49, 43.35, -64.97)
CIE-LCHlch(25.49, 78.11, 303.71°)
OKLaboklab(37.64% 0.0172 -0.1879)
OKLCHoklch(37.64% 0.189 275.2)
XYZxyz(8.3393, 4.5749, 34.6190)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E26A2 #9AA226
analogous
#265CA2 #2E26A2 #6C26A2
triadic
#2E26A2 #A22E26 #26A22E
tetradic
#2E26A2 #A2265C #9AA226 #26A26C
square
#2E26A2 #A2265C #9AA226 #26A26C
split-complementary
#2E26A2 #A26C26 #5CA226
monochromatic
#120F3F #201A70 #2E26A2 #3F35D0 #6F67DB

Accessibility & contrast

On white

10.96
#2E26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E26A2
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E26A2#FFFFFF#000000##FFFFFF
##2E26A21.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e26a2;
/* rgb */ color: rgb(46, 38, 162);
/* oklch */ color: oklch(37.6% 0.189 275.2);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2e26a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e26a2;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e26a2",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 243.871,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37643,
    "c": 0.18865,
    "h": 275.2
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

primary
#2E26A2
secondary
#BBC163
accent
#E543DB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2E26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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