#2A2168#2A2168

#2A2168 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.6% C 0.119 H 282.6°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2168
RGBrgb(42, 33, 104)
HSLhsl(248, 52%, 27%)
HSVhsv(248, 68%, 41%)
CMYKcmyk(59.6%, 68.3%, 0%, 59.2%)
CIE-LABlab(18.27, 26.14, -40.34)
CIE-LCHlch(18.27, 48.07, 302.94°)
OKLaboklab(30.65% 0.0259 -0.116)
OKLCHoklch(30.65% 0.119 282.6)
XYZxyz(3.9966, 2.5792, 13.3813)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2168 #5F6821
analogous
#213C68 #2A2168 #4E2168
triadic
#2A2168 #682A21 #21682A
tetradic
#2A2168 #68213C #5F6821 #21684E
square
#2A2168 #68213C #5F6821 #21684E
split-complementary
#2A2168 #684E21 #3C6821
monochromatic
#090717 #17123A #2A2168 #3D3096 #5141C3

Accessibility & contrast

On white

13.85
#2A2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2168
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2168#FFFFFF#000000##FFFFFF
##2A21681.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002A67
Tritanopia (blue-blind)
#0A3341
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a2168;
/* rgb */ color: rgb(42, 33, 104);
/* oklch */ color: oklch(30.6% 0.119 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5d94',
    500: '#2a2168',
    950: '#000000',
  },
}
SCSS
$custom: #2a2168;
$custom-light: #6b5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2168",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 247.606,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30648,
    "c": 0.11882,
    "h": 282.6
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#2A2168
secondary
#919C49
accent
#DB4DC9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A2168

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

Preview Lab → · Contrast checker → · Palette generator →

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