#2A2093#2A2093

#2A2093 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.177 H 275.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2A2093
RGBrgb(42, 32, 147)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(71.4%, 78.2%, 0%, 42.4%)
CIE-LABlab(22.41, 41.34, -60.87)
CIE-LCHlch(22.41, 73.58, 304.19°)
OKLaboklab(34.92% 0.0183 -0.176)
OKLCHoklch(34.92% 0.177 275.9)
XYZxyz(6.7361, 3.6312, 27.9440)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2093 #899320
analogous
#205093 #2A2093 #632093
triadic
#2A2093 #932A20 #20932A
tetradic
#2A2093 #932050 #899320 #209363
square
#2A2093 #932050 #899320 #209363
split-complementary
#2A2093 #936320 #509320
monochromatic
#0D0A2E #1C1561 #2A2093 #382BC5 #5F54DA

Accessibility & contrast

On white

12.16
#2A2093 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2093 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2093
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2093#FFFFFF#000000##FFFFFF
##2A20931.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2093;
/* rgb */ color: rgb(42, 32, 147);
/* oklch */ color: oklch(34.9% 0.177 275.9);
Tailwind
colors: {
  custom: {
    50: '#745eb4',
    500: '#2a2093',
    950: '#000000',
  },
}
SCSS
$custom: #2a2093;
$custom-light: #745eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2093",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 147
  },
  "hsl": {
    "h": 245.217,
    "s": 64.246,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.17692,
    "h": 275.9
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#2A2093
secondary
#B4BD52
accent
#E741D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A2093

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

Preview Lab → · Contrast checker → · Palette generator →

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