#2A26AA#2A26AA

#2A26AA is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.199 H 273.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2A26AA
RGBrgb(42, 38, 170)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 78%, 67%)
CMYKcmyk(75.3%, 77.6%, 0%, 33.3%)
CIE-LABlab(26.10, 45.60, -68.81)
CIE-LCHlch(26.10, 82.55, 303.53°)
OKLaboklab(38.26% 0.0104 -0.1991)
OKLCHoklch(38.26% 0.199 273)
XYZxyz(8.9012, 4.7798, 38.4759)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26AA #A6AA26
analogous
#2664AA #2A26AA #6C26AA
triadic
#2A26AA #AA2A26 #26AA2A
tetradic
#2A26AA #AA2664 #A6AA26 #26AA6C
square
#2A26AA #AA2664 #A6AA26 #26AA6C
split-complementary
#2A26AA #AA6C26 #64AA26
monochromatic
#111046 #1E1B78 #2A26AA #3F3AD3 #706CDE

Accessibility & contrast

On white

10.74
#2A26AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A26AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26AA
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26AA#FFFFFF#000000##FFFFFF
##2A26AA1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#0037A8
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a26aa;
/* rgb */ color: rgb(42, 38, 170);
/* oklch */ color: oklch(38.3% 0.199 273.0);
Tailwind
colors: {
  custom: {
    50: '#7963c5',
    500: '#2a26aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a26aa;
$custom-light: #7963c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26aa",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 170
  },
  "hsl": {
    "h": 241.818,
    "s": 63.462,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38261,
    "c": 0.1994,
    "h": 273
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A26AA

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

Preview Lab → · Contrast checker → · Palette generator →

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