#2A264C#2A264C

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

Color values

HEX#2A264C
RGBrgb(42, 38, 76)
HSLhsl(246, 33%, 22%)
HSVhsv(246, 50%, 30%)
CMYKcmyk(44.7%, 50%, 0%, 70.2%)
CIE-LABlab(17.46, 12.94, -22.97)
CIE-LCHlch(17.46, 26.37, 299.39°)
OKLaboklab(29.36% 0.0189 -0.0649)
OKLCHoklch(29.36% 0.068 286.3)
XYZxyz(2.9521, 2.4002, 7.1438)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A264C #484C26
analogous
#26354C #2A264C #3D264C
triadic
#2A264C #4C2A26 #264C2A
tetradic
#2A264C #4C2635 #484C26 #264C3D
square
#2A264C #4C2635 #484C26 #264C3D
split-complementary
#2A264C #4C3D26 #354C26
monochromatic
#0B0A14 #131223 #2A264C #413A75 #574F9E

Accessibility & contrast

On white

14.19
#2A264C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A264C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A264C#FFFFFF#000000##FFFFFF
##2A264C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182C4D
Deuteranopia (green-blind)
#172A4B
Tritanopia (blue-blind)
#202E35
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a264c;
/* rgb */ color: rgb(42, 38, 76);
/* oklch */ color: oklch(29.4% 0.068 286.3);
Tailwind
colors: {
  custom: {
    50: '#66607e',
    500: '#2a264c',
    950: '#000000',
  },
}
SCSS
$custom: #2a264c;
$custom-light: #66607e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a264c",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 76
  },
  "hsl": {
    "h": 246.316,
    "s": 33.333,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29358,
    "c": 0.06761,
    "h": 286.3
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#2A264C
secondary
#7A7F4F
accent
#C95EBE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A264C

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

Preview Lab → · Contrast checker → · Palette generator →

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