#2A2294#2A2294

#2A2294 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.176 H 275.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2294
RGBrgb(42, 34, 148)
HSLhsl(244, 63%, 36%)
HSVhsv(244, 77%, 58%)
CMYKcmyk(71.6%, 77%, 0%, 42%)
CIE-LABlab(22.91, 40.57, -60.67)
CIE-LCHlch(22.91, 72.98, 303.77°)
OKLaboklab(35.3% 0.017 -0.1754)
OKLCHoklch(35.3% 0.176 275.5)
XYZxyz(6.8704, 3.7738, 28.3776)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2294 #8C9422
analogous
#225394 #2A2294 #632294
triadic
#2A2294 #942A22 #22942A
tetradic
#2A2294 #942253 #8C9422 #229463
square
#2A2294 #942253 #8C9422 #229463
split-complementary
#2A2294 #946322 #539422
monochromatic
#0E0B30 #1C1762 #2A2294 #382DC6 #6158D9

Accessibility & contrast

On white

11.97
#2A2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2294
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2294#FFFFFF#000000##FFFFFF
##2A22941.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2294;
/* rgb */ color: rgb(42, 34, 148);
/* oklch */ color: oklch(35.3% 0.176 275.5);
Tailwind
colors: {
  custom: {
    50: '#745fb5',
    500: '#2a2294',
    950: '#000000',
  },
}
SCSS
$custom: #2a2294;
$custom-light: #745fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2294",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 244.211,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35301,
    "c": 0.17623,
    "h": 275.5
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#2A2294
secondary
#B5BD55
accent
#E642DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2294

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

Preview Lab → · Contrast checker → · Palette generator →

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