#2A26A5#2A26A5

#2A26A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.193 H 273.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2A26A5
RGBrgb(42, 38, 165)
HSLhsl(242, 63%, 40%)
HSVhsv(242, 77%, 65%)
CMYKcmyk(74.5%, 77%, 0%, 35.3%)
CIE-LABlab(25.55, 43.97, -66.71)
CIE-LCHlch(25.55, 79.89, 303.39°)
OKLaboklab(37.71% 0.0114 -0.193)
OKLCHoklch(37.71% 0.193 273.4)
XYZxyz(8.4372, 4.5942, 36.0321)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A5 #A1A526
analogous
#2661A5 #2A26A5 #6A26A5
triadic
#2A26A5 #A52A26 #26A52A
tetradic
#2A26A5 #A52661 #A1A526 #26A56A
square
#2A26A5 #A52661 #A1A526 #26A56A
split-complementary
#2A26A5 #A56A26 #61A526
monochromatic
#110F42 #1D1B73 #2A26A5 #3C37D1 #6D69DC

Accessibility & contrast

On white

10.94
#2A26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26A5
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A5#FFFFFF#000000##FFFFFF
##2A26A51.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a26a5;
/* rgb */ color: rgb(42, 38, 165);
/* oklch */ color: oklch(37.7% 0.193 273.4);
Tailwind
colors: {
  custom: {
    50: '#7863c1',
    500: '#2a26a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a5;
$custom-light: #7863c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a5",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 241.89,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3771,
    "c": 0.19335,
    "h": 273.4
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#2A26A5
secondary
#C0C364
accent
#E642E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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