#2A26A2#2A26A2

#2A26A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.190 H 273.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2A26A2
RGBrgb(42, 38, 162)
HSLhsl(242, 62%, 39%)
HSVhsv(242, 77%, 64%)
CMYKcmyk(74.1%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.22, 42.98, -65.43)
CIE-LCHlch(25.22, 78.28, 303.30°)
OKLaboklab(37.38% 0.0121 -0.1893)
OKLCHoklch(37.38% 0.19 273.6)
XYZxyz(8.1674, 4.4863, 34.6109)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A2 #9EA226
analogous
#2660A2 #2A26A2 #6826A2
triadic
#2A26A2 #A22A26 #26A22A
tetradic
#2A26A2 #A22660 #9EA226 #26A268
square
#2A26A2 #A22660 #9EA226 #26A268
split-complementary
#2A26A2 #A26826 #60A226
monochromatic
#100F3F #1D1A70 #2A26A2 #3A35D0 #6B67DB

Accessibility & contrast

On white

11.07
#2A26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26A2
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A2#FFFFFF#000000##FFFFFF
##2A26A21.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a26a2;
/* rgb */ color: rgb(42, 38, 162);
/* oklch */ color: oklch(37.4% 0.190 273.6);
Tailwind
colors: {
  custom: {
    50: '#7762bf',
    500: '#2a26a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a2;
$custom-light: #7762bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a2",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 241.935,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37382,
    "c": 0.18967,
    "h": 273.6
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#2A26A2
secondary
#BEC163
accent
#E543E0
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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