#2A2195#2A2195

#2A2195 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.178 H 275.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2A2195
RGBrgb(42, 33, 149)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(71.8%, 77.9%, 0%, 41.6%)
CIE-LABlab(22.82, 41.45, -61.42)
CIE-LCHlch(22.82, 74.10, 304.01°)
OKLaboklab(35.27% 0.0173 -0.1776)
OKLCHoklch(35.27% 0.178 275.6)
XYZxyz(6.9217, 3.7492, 28.7868)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2195 #8C9521
analogous
#215295 #2A2195 #642195
triadic
#2A2195 #952A21 #21952A
tetradic
#2A2195 #952152 #8C9521 #219564
square
#2A2195 #952152 #8C9521 #219564
split-complementary
#2A2195 #956421 #529521
monochromatic
#0E0B31 #1C1663 #2A2195 #382CC7 #6157DA

Accessibility & contrast

On white

12.00
#2A2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2195
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2195#FFFFFF#000000##FFFFFF
##2A21951.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.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: #2a2195;
/* rgb */ color: rgb(42, 33, 149);
/* oklch */ color: oklch(35.3% 0.178 275.6);
Tailwind
colors: {
  custom: {
    50: '#755fb5',
    500: '#2a2195',
    950: '#000000',
  },
}
SCSS
$custom: #2a2195;
$custom-light: #755fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2195",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 244.655,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35274,
    "c": 0.17843,
    "h": 275.6
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#2A2195
secondary
#B5BE54
accent
#E741DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2195

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

Preview Lab → · Contrast checker → · Palette generator →

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