#2A2396#2A2396

#2A2396 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.178 H 275.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A2396
RGBrgb(42, 35, 150)
HSLhsl(244, 62%, 36%)
HSVhsv(244, 77%, 59%)
CMYKcmyk(72%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.32, 40.67, -61.22)
CIE-LCHlch(23.32, 73.50, 303.60°)
OKLaboklab(35.66% 0.0161 -0.177)
OKLCHoklch(35.66% 0.178 275.2)
XYZxyz(7.0591, 3.8956, 29.2282)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2396 #8F9623
analogous
#235696 #2A2396 #642396
triadic
#2A2396 #962A23 #23962A
tetradic
#2A2396 #962356 #8F9623 #239664
square
#2A2396 #962356 #8F9623 #239664
split-complementary
#2A2396 #966423 #569623
monochromatic
#0E0C33 #1C1764 #2A2396 #382FC8 #625BD9

Accessibility & contrast

On white

11.80
#2A2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2396
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2396#FFFFFF#000000##FFFFFF
##2A23961.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2396;
/* rgb */ color: rgb(42, 35, 150);
/* oklch */ color: oklch(35.7% 0.178 275.2);
Tailwind
colors: {
  custom: {
    50: '#7560b6',
    500: '#2a2396',
    950: '#000000',
  },
}
SCSS
$custom: #2a2396;
$custom-light: #7560b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2396",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 243.652,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.17774,
    "h": 275.2
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#2A2396
secondary
#B7BD58
accent
#E543DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2396

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

Preview Lab → · Contrast checker → · Palette generator →

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