#2D26A6#2D26A6

#2D26A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.194 H 274.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2D26A6
RGBrgb(45, 38, 166)
HSLhsl(243, 63%, 40%)
HSVhsv(243, 77%, 65%)
CMYKcmyk(72.9%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.85, 44.56, -66.80)
CIE-LCHlch(25.85, 80.30, 303.71°)
OKLaboklab(38.01% 0.015 -0.1932)
OKLCHoklch(38.01% 0.194 274.4)
XYZxyz(8.6560, 4.6964, 36.5193)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D26A6 #9FA626
analogous
#265FA6 #2D26A6 #6D26A6
triadic
#2D26A6 #A62D26 #26A62D
tetradic
#2D26A6 #A6265F #9FA626 #26A66D
square
#2D26A6 #A6265F #9FA626 #26A66D
split-complementary
#2D26A6 #A66D26 #5FA626
monochromatic
#120F42 #1F1B74 #2D26A6 #4038D1 #706ADD

Accessibility & contrast

On white

10.83
#2D26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D26A6
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D26A6#FFFFFF#000000##FFFFFF
##2D26A61.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.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: #2d26a6;
/* rgb */ color: rgb(45, 38, 166);
/* oklch */ color: oklch(38.0% 0.194 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a63c2',
    500: '#2d26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d26a6;
$custom-light: #7a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d26a6",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 243.281,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.3801,
    "c": 0.19379,
    "h": 274.4
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#2D26A6
secondary
#BEC365
accent
#E642DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2D26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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