#2A2894#2A2894

#2A2894 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.170 H 274.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2894
RGBrgb(42, 40, 148)
HSLhsl(241, 57%, 37%)
HSVhsv(241, 73%, 58%)
CMYKcmyk(71.6%, 73%, 0%, 42%)
CIE-LABlab(24.15, 37.08, -58.62)
CIE-LCHlch(24.15, 69.36, 302.32°)
OKLaboklab(36.18% 0.0137 -0.1695)
OKLCHoklch(36.18% 0.17 274.6)
XYZxyz(7.0572, 4.1473, 28.4398)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2894 #929428
analogous
#285C94 #2A2894 #602894
triadic
#2A2894 #942A28 #28942A
tetradic
#2A2894 #94285C #929428 #289460
square
#2A2894 #94285C #929428 #289460
split-complementary
#2A2894 #946028 #5C9428
monochromatic
#0F0E34 #1C1B64 #2A2894 #3835C4 #6462D5

Accessibility & contrast

On white

11.48
#2A2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2894
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2894#FFFFFF#000000##FFFFFF
##2A28941.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2894;
/* rgb */ color: rgb(42, 40, 148);
/* oklch */ color: oklch(36.2% 0.170 274.6);
Tailwind
colors: {
  custom: {
    50: '#7463b5',
    500: '#2a2894',
    950: '#000000',
  },
}
SCSS
$custom: #2a2894;
$custom-light: #7463b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2894",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 241.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36184,
    "c": 0.17001,
    "h": 274.6
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#2A2894
secondary
#B8BA5E
accent
#E147DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2894

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

Preview Lab → · Contrast checker → · Palette generator →

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