#2A264D#2A264D

#2A264D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.069 H 286.0°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2A264D
RGBrgb(42, 38, 77)
HSLhsl(246, 34%, 23%)
HSVhsv(246, 51%, 30%)
CMYKcmyk(45.5%, 50.6%, 0%, 69.8%)
CIE-LABlab(17.53, 13.28, -23.55)
CIE-LCHlch(17.53, 27.04, 299.42°)
OKLaboklab(29.43% 0.0191 -0.0666)
OKLCHoklch(29.43% 0.069 286)
XYZxyz(2.9871, 2.4142, 7.3283)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A264D #494D26
analogous
#26354D #2A264D #3E264D
triadic
#2A264D #4D2A26 #264D2A
tetradic
#2A264D #4D2635 #494D26 #264D3E
square
#2A264D #4D2635 #494D26 #264D3E
split-complementary
#2A264D #4D3E26 #354D26
monochromatic
#0B0A14 #141224 #2A264D #403A76 #574E9F

Accessibility & contrast

On white

14.16
#2A264D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A264D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A264D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A264D#FFFFFF#000000##FFFFFF
##2A264D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4E
Deuteranopia (green-blind)
#162A4C
Tritanopia (blue-blind)
#202E35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a264d;
/* rgb */ color: rgb(42, 38, 77);
/* oklch */ color: oklch(29.4% 0.069 286.0);
Tailwind
colors: {
  custom: {
    50: '#66607f',
    500: '#2a264d',
    950: '#000000',
  },
}
SCSS
$custom: #2a264d;
$custom-light: #66607f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a264d",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 77
  },
  "hsl": {
    "h": 246.154,
    "s": 33.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29428,
    "c": 0.06928,
    "h": 286
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#2A264D
secondary
#7B804F
accent
#CA5EBF
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A264D

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

Preview Lab → · Contrast checker → · Palette generator →

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