#2A26A7#2A26A7

#2A26A7 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.196 H 273.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2A26A7
RGBrgb(42, 38, 167)
HSLhsl(242, 63%, 40%)
HSVhsv(242, 77%, 65%)
CMYKcmyk(74.9%, 77.2%, 0%, 34.5%)
CIE-LABlab(25.77, 44.62, -67.55)
CIE-LCHlch(25.77, 80.96, 303.45°)
OKLaboklab(37.93% 0.011 -0.1955)
OKLCHoklch(37.93% 0.196 273.2)
XYZxyz(8.6207, 4.6676, 36.9983)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A7 #A3A726
analogous
#2663A7 #2A26A7 #6A26A7
triadic
#2A26A7 #A72A26 #26A72A
tetradic
#2A26A7 #A72663 #A3A726 #26A76A
square
#2A26A7 #A72663 #A3A726 #26A76A
split-complementary
#2A26A7 #A76A26 #63A726
monochromatic
#110F43 #1D1B75 #2A26A7 #3D38D2 #6E6ADD

Accessibility & contrast

On white

10.86
#2A26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26A7
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A7#FFFFFF#000000##FFFFFF
##2A26A71.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a26a7;
/* rgb */ color: rgb(42, 38, 167);
/* oklch */ color: oklch(37.9% 0.196 273.2);
Tailwind
colors: {
  custom: {
    50: '#7963c2',
    500: '#2a26a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a7;
$custom-light: #7963c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a7",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 241.86,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.19578,
    "h": 273.2
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#2A26A7
secondary
#C0C365
accent
#E642E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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