#2A2397#2A2397

#2A2397 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.179 H 275.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2397
RGBrgb(42, 35, 151)
HSLhsl(244, 62%, 36%)
HSVhsv(244, 77%, 59%)
CMYKcmyk(72.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(23.43, 41.00, -61.65)
CIE-LCHlch(23.43, 74.04, 303.63°)
OKLaboklab(35.77% 0.0159 -0.1783)
OKLCHoklch(35.77% 0.179 275.1)
XYZxyz(7.1399, 3.9280, 29.6541)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2397 #909723
analogous
#235697 #2A2397 #642397
triadic
#2A2397 #972A23 #23972A
tetradic
#2A2397 #972356 #909723 #239764
square
#2A2397 #972356 #909723 #239764
split-complementary
#2A2397 #976423 #569723
monochromatic
#0E0C34 #1C1765 #2A2397 #382FC9 #635BD9

Accessibility & contrast

On white

11.76
#2A2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2397
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2397#FFFFFF#000000##FFFFFF
##2A23971.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2397;
/* rgb */ color: rgb(42, 35, 151);
/* oklch */ color: oklch(35.8% 0.179 275.1);
Tailwind
colors: {
  custom: {
    50: '#7560b7',
    500: '#2a2397',
    950: '#000000',
  },
}
SCSS
$custom: #2a2397;
$custom-light: #7560b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2397",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 243.621,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35767,
    "c": 0.17898,
    "h": 275.1
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#2A2397
secondary
#B7BE58
accent
#E542DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2397

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

Preview Lab → · Contrast checker → · Palette generator →

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