#2D26A2#2D26A2

#2D26A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.189 H 274.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2D26A2
RGBrgb(45, 38, 162)
HSLhsl(243, 62%, 39%)
HSVhsv(243, 77%, 64%)
CMYKcmyk(72.2%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.42, 43.26, -65.09)
CIE-LCHlch(25.42, 78.15, 303.61°)
OKLaboklab(37.58% 0.0159 -0.1882)
OKLCHoklch(37.58% 0.189 274.8)
XYZxyz(8.2947, 4.5519, 34.6169)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D26A2 #9BA226
analogous
#265DA2 #2D26A2 #6B26A2
triadic
#2D26A2 #A22D26 #26A22D
tetradic
#2D26A2 #A2265D #9BA226 #26A26B
square
#2D26A2 #A2265D #9BA226 #26A26B
split-complementary
#2D26A2 #A26B26 #5DA226
monochromatic
#110F3F #1F1A70 #2D26A2 #3E35D0 #6E67DB

Accessibility & contrast

On white

10.99
#2D26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D26A2
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D26A2#FFFFFF#000000##FFFFFF
##2D26A21.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d26a2;
/* rgb */ color: rgb(45, 38, 162);
/* oklch */ color: oklch(37.6% 0.189 274.8);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2d26a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d26a2;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d26a2",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 243.387,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37576,
    "c": 0.18891,
    "h": 274.8
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#2D26A2
secondary
#BCC163
accent
#E543DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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