#2A2095#2A2095

#2A2095 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.179 H 275.7°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2A2095
RGBrgb(42, 32, 149)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(71.8%, 78.5%, 0%, 41.6%)
CIE-LABlab(22.63, 42.00, -61.74)
CIE-LCHlch(22.63, 74.67, 304.22°)
OKLaboklab(35.14% 0.0178 -0.1785)
OKLCHoklch(35.14% 0.179 275.7)
XYZxyz(6.8944, 3.6945, 28.7777)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2095 #8B9520
analogous
#205095 #2A2095 #642095
triadic
#2A2095 #952A20 #20952A
tetradic
#2A2095 #952050 #8B9520 #209564
square
#2A2095 #952050 #8B9520 #209564
split-complementary
#2A2095 #956420 #509520
monochromatic
#0E0A30 #1C1563 #2A2095 #382BC7 #6055DA

Accessibility & contrast

On white

12.08
#2A2095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2095
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2095#FFFFFF#000000##FFFFFF
##2A20951.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2095;
/* rgb */ color: rgb(42, 32, 149);
/* oklch */ color: oklch(35.1% 0.179 275.7);
Tailwind
colors: {
  custom: {
    50: '#755eb5',
    500: '#2a2095',
    950: '#000000',
  },
}
SCSS
$custom: #2a2095;
$custom-light: #755eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2095",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 149
  },
  "hsl": {
    "h": 245.128,
    "s": 64.641,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.17938,
    "h": 275.7
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#2A2095
secondary
#B5BE53
accent
#E840D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A2095

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

Preview Lab → · Contrast checker → · Palette generator →

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