#2B26A2#2B26A2

#2B26A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.189 H 274.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2B26A2
RGBrgb(43, 38, 162)
HSLhsl(242, 62%, 39%)
HSVhsv(242, 77%, 64%)
CMYKcmyk(73.5%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.28, 43.07, -65.32)
CIE-LCHlch(25.28, 78.24, 303.40°)
OKLaboklab(37.45% 0.0133 -0.1889)
OKLCHoklch(37.45% 0.189 274)
XYZxyz(8.2088, 4.5076, 34.6129)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B26A2 #9DA226
analogous
#265FA2 #2B26A2 #6926A2
triadic
#2B26A2 #A22B26 #26A22B
tetradic
#2B26A2 #A2265F #9DA226 #26A269
square
#2B26A2 #A2265F #9DA226 #26A269
split-complementary
#2B26A2 #A26926 #5FA226
monochromatic
#110F3F #1E1A70 #2B26A2 #3C35D0 #6C67DB

Accessibility & contrast

On white

11.04
#2B26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B26A2
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B26A2#FFFFFF#000000##FFFFFF
##2B26A21.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b26a2;
/* rgb */ color: rgb(43, 38, 162);
/* oklch */ color: oklch(37.4% 0.189 274.0);
Tailwind
colors: {
  custom: {
    50: '#7862bf',
    500: '#2b26a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b26a2;
$custom-light: #7862bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b26a2",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 242.419,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37445,
    "c": 0.18942,
    "h": 274
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#2B26A2
secondary
#BDC163
accent
#E543DF
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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