#2A26A6#2A26A6

#2A26A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.195 H 273.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2A26A6
RGBrgb(42, 38, 166)
HSLhsl(242, 63%, 40%)
HSVhsv(242, 77%, 65%)
CMYKcmyk(74.7%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.66, 44.29, -67.13)
CIE-LCHlch(25.66, 80.43, 303.42°)
OKLaboklab(37.82% 0.0112 -0.1942)
OKLCHoklch(37.82% 0.195 273.3)
XYZxyz(8.5286, 4.6308, 36.5134)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A26A6 #A2A626
analogous
#2662A6 #2A26A6 #6A26A6
triadic
#2A26A6 #A62A26 #26A62A
tetradic
#2A26A6 #A62662 #A2A626 #26A66A
square
#2A26A6 #A62662 #A2A626 #26A66A
split-complementary
#2A26A6 #A66A26 #62A626
monochromatic
#110F42 #1D1B74 #2A26A6 #3D38D1 #6D6ADD

Accessibility & contrast

On white

10.90
#2A26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A26A6
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A26A6#FFFFFF#000000##FFFFFF
##2A26A61.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a26a6;
/* rgb */ color: rgb(42, 38, 166);
/* oklch */ color: oklch(37.8% 0.195 273.3);
Tailwind
colors: {
  custom: {
    50: '#7863c2',
    500: '#2a26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a26a6;
$custom-light: #7863c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a26a6",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 241.875,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.3782,
    "c": 0.19456,
    "h": 273.3
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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