#2A2795#2A2795

#2A2795 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.172 H 274.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2A2795
RGBrgb(42, 39, 149)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 58%)
CMYKcmyk(71.8%, 73.8%, 0%, 41.6%)
CIE-LABlab(24.04, 38.02, -59.42)
CIE-LCHlch(24.04, 70.54, 302.62°)
OKLaboklab(36.13% 0.0141 -0.1718)
OKLCHoklch(36.13% 0.172 274.7)
XYZxyz(7.1034, 4.1125, 28.8474)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2795 #929527
analogous
#275B95 #2A2795 #612795
triadic
#2A2795 #952A27 #27952A
tetradic
#2A2795 #95275B #929527 #279561
square
#2A2795 #95275B #929527 #279561
split-complementary
#2A2795 #956127 #5B9527
monochromatic
#0F0E34 #1C1A64 #2A2795 #3834C6 #6461D6

Accessibility & contrast

On white

11.52
#2A2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2795
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2795#FFFFFF#000000##FFFFFF
##2A27951.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2795;
/* rgb */ color: rgb(42, 39, 149);
/* oklch */ color: oklch(36.1% 0.172 274.7);
Tailwind
colors: {
  custom: {
    50: '#7462b5',
    500: '#2a2795',
    950: '#000000',
  },
}
SCSS
$custom: #2a2795;
$custom-light: #7462b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2795",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 241.636,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.17238,
    "h": 274.7
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#2A2795
secondary
#B8BB5D
accent
#E246DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2795

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

Preview Lab → · Contrast checker → · Palette generator →

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