#2A26A8#2A26A8

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

Color values

HEX#2A26A8
RGBrgb(42, 38, 168)
HSLhsl(242, 63%, 40%)
HSVhsv(242, 77%, 66%)
CMYKcmyk(75%, 77.4%, 0%, 34.1%)
CIE-LABlab(25.88, 44.95, -67.97)
CIE-LCHlch(25.88, 81.49, 303.48°)
OKLaboklab(38.04% 0.0108 -0.1967)
OKLCHoklch(38.04% 0.197 273.1)
XYZxyz(8.7135, 4.7047, 37.4871)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A8 #A4A826
analogous
#2663A8 #2A26A8 #6B26A8
triadic
#2A26A8 #A82A26 #26A82A
tetradic
#2A26A8 #A82663 #A4A826 #26A86B
square
#2A26A8 #A82663 #A4A826 #26A86B
split-complementary
#2A26A8 #A86B26 #63A826
monochromatic
#110F44 #1E1B76 #2A26A8 #3E39D2 #6E6BDE

Accessibility & contrast

On white

10.82
#2A26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A26A8
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A8#FFFFFF#000000##FFFFFF
##2A26A81.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a26a8;
/* rgb */ color: rgb(42, 38, 168);
/* oklch */ color: oklch(38.0% 0.197 273.1);
Tailwind
colors: {
  custom: {
    50: '#7963c3',
    500: '#2a26a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a8;
$custom-light: #7963c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a8",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 241.846,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3804,
    "c": 0.19699,
    "h": 273.1
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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