#2E26A6#2E26A6

#2E26A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.194 H 274.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2E26A6
RGBrgb(46, 38, 166)
HSLhsl(244, 63%, 40%)
HSVhsv(244, 77%, 65%)
CMYKcmyk(72.3%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.92, 44.65, -66.69)
CIE-LCHlch(25.92, 80.25, 303.81°)
OKLaboklab(38.07% 0.0163 -0.1928)
OKLCHoklch(38.07% 0.194 274.8)
XYZxyz(8.7005, 4.7194, 36.5214)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E26A6 #9EA626
analogous
#265EA6 #2E26A6 #6E26A6
triadic
#2E26A6 #A62E26 #26A62E
tetradic
#2E26A6 #A6265E #9EA626 #26A66E
square
#2E26A6 #A6265E #9EA626 #26A66E
split-complementary
#2E26A6 #A66E26 #5EA626
monochromatic
#120F42 #201B74 #2E26A6 #4138D1 #716ADD

Accessibility & contrast

On white

10.80
#2E26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E26A6
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E26A6#FFFFFF#000000##FFFFFF
##2E26A61.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e26a6;
/* rgb */ color: rgb(46, 38, 166);
/* oklch */ color: oklch(38.1% 0.194 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a63c2',
    500: '#2e26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e26a6;
$custom-light: #7a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e26a6",
  "rgb": {
    "r": 46,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 243.75,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.38075,
    "c": 0.19354,
    "h": 274.8
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#2E26A6
secondary
#BDC365
accent
#E642DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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