#2D26A5#2D26A5

#2D26A5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.193 H 274.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2D26A5
RGBrgb(45, 38, 165)
HSLhsl(243, 63%, 40%)
HSVhsv(243, 77%, 65%)
CMYKcmyk(72.7%, 77%, 0%, 35.3%)
CIE-LABlab(25.74, 44.23, -66.37)
CIE-LCHlch(25.74, 79.76, 303.68°)
OKLaboklab(37.9% 0.0152 -0.192)
OKLCHoklch(37.9% 0.193 274.5)
XYZxyz(8.5646, 4.6599, 36.0381)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D26A5 #9EA526
analogous
#265FA5 #2D26A5 #6D26A5
triadic
#2D26A5 #A52D26 #26A52D
tetradic
#2D26A5 #A5265F #9EA526 #26A56D
square
#2D26A5 #A5265F #9EA526 #26A56D
split-complementary
#2D26A5 #A56D26 #5FA526
monochromatic
#120F42 #1F1B73 #2D26A5 #4037D1 #6F69DC

Accessibility & contrast

On white

10.87
#2D26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D26A5
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D26A5#FFFFFF#000000##FFFFFF
##2D26A51.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d26a5;
/* rgb */ color: rgb(45, 38, 165);
/* oklch */ color: oklch(37.9% 0.193 274.5);
Tailwind
colors: {
  custom: {
    50: '#7963c1',
    500: '#2d26a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d26a5;
$custom-light: #7963c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d26a5",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 243.307,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37901,
    "c": 0.19257,
    "h": 274.5
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#2D26A5
secondary
#BDC364
accent
#E642DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2D26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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