#2A26A9#2A26A9

#2A26A9 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.2% C 0.198 H 273.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2A26A9
RGBrgb(42, 38, 169)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 78%, 66%)
CMYKcmyk(75.1%, 77.5%, 0%, 33.7%)
CIE-LABlab(25.99, 45.28, -68.39)
CIE-LCHlch(25.99, 82.02, 303.50°)
OKLaboklab(38.15% 0.0106 -0.1979)
OKLCHoklch(38.15% 0.198 273.1)
XYZxyz(8.8070, 4.7421, 37.9796)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A9 #A5A926
analogous
#2663A9 #2A26A9 #6B26A9
triadic
#2A26A9 #A92A26 #26A92A
tetradic
#2A26A9 #A92663 #A5A926 #26A96B
square
#2A26A9 #A92663 #A5A926 #26A96B
split-complementary
#2A26A9 #A96B26 #63A926
monochromatic
#111045 #1E1B77 #2A26A9 #3E3AD3 #6F6CDE

Accessibility & contrast

On white

10.78
#2A26A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A26A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26A9
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A9#FFFFFF#000000##FFFFFF
##2A26A91.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a26a9;
/* rgb */ color: rgb(42, 38, 169);
/* oklch */ color: oklch(38.2% 0.198 273.1);
Tailwind
colors: {
  custom: {
    50: '#7963c4',
    500: '#2a26a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a9;
$custom-light: #7963c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a9",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 169
  },
  "hsl": {
    "h": 241.832,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38151,
    "c": 0.19819,
    "h": 273.1
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#2A26A9
secondary
#C1C467
accent
#E641E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A26A9

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

Preview Lab → · Contrast checker → · Palette generator →

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