#2D26A1#2D26A1

#2D26A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.188 H 274.9°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2D26A1
RGBrgb(45, 38, 161)
HSLhsl(243, 62%, 39%)
HSVhsv(243, 76%, 63%)
CMYKcmyk(72%, 76.4%, 0%, 36.9%)
CIE-LABlab(25.31, 42.93, -64.66)
CIE-LCHlch(25.31, 77.61, 303.58°)
OKLaboklab(37.47% 0.0161 -0.187)
OKLCHoklch(37.47% 0.188 274.9)
XYZxyz(8.2062, 4.5165, 34.1506)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D26A1 #9AA126
analogous
#265DA1 #2D26A1 #6B26A1
triadic
#2D26A1 #A12D26 #26A12D
tetradic
#2D26A1 #A1265D #9AA126 #26A16B
square
#2D26A1 #A1265D #9AA126 #26A16B
split-complementary
#2D26A1 #A16B26 #5DA126
monochromatic
#110F3E #1F1A6F #2D26A1 #3E35CF #6D66DB

Accessibility & contrast

On white

11.03
#2D26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D26A1
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D26A1#FFFFFF#000000##FFFFFF
##2D26A11.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d26a1;
/* rgb */ color: rgb(45, 38, 161);
/* oklch */ color: oklch(37.5% 0.188 274.9);
Tailwind
colors: {
  custom: {
    50: '#7863be',
    500: '#2d26a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d26a1;
$custom-light: #7863be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d26a1",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 243.415,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37468,
    "c": 0.18768,
    "h": 274.9
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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