#2A266B#2A266B

#2A266B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.8% C 0.116 H 280.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2A266B
RGBrgb(42, 38, 107)
HSLhsl(243, 48%, 28%)
HSVhsv(243, 64%, 42%)
CMYKcmyk(60.7%, 64.5%, 0%, 58%)
CIE-LABlab(19.80, 23.86, -39.81)
CIE-LCHlch(19.80, 46.42, 300.94°)
OKLaboklab(31.85% 0.0204 -0.1144)
OKLCHoklch(31.85% 0.116 280.1)
XYZxyz(4.3010, 2.9397, 14.2478)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A266B #676B26
analogous
#26446B #2A266B #4C266B
triadic
#2A266B #6B2A26 #266B2A
tetradic
#2A266B #6B2644 #676B26 #266B4C
square
#2A266B #6B2644 #676B26 #266B4C
split-complementary
#2A266B #6B4C26 #446B26
monochromatic
#090817 #18163E #2A266B #3C3698 #534CBF

Accessibility & contrast

On white

13.22
#2A266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A266B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A266B#FFFFFF#000000##FFFFFF
##2A266B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#043744
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a266b;
/* rgb */ color: rgb(42, 38, 107);
/* oklch */ color: oklch(31.8% 0.116 280.1);
Tailwind
colors: {
  custom: {
    50: '#6b6096',
    500: '#2a266b',
    950: '#000000',
  },
}
SCSS
$custom: #2a266b;
$custom-light: #6b6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2a266b",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 243.478,
    "s": 47.586,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31846,
    "c": 0.11618,
    "h": 280.1
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#2A266B
secondary
#999E4F
accent
#D751CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A266B

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

Preview Lab → · Contrast checker → · Palette generator →

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