#2A2792#2A2792

#2A2792 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.169 H 275.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2792
RGBrgb(42, 39, 146)
HSLhsl(242, 58%, 36%)
HSVhsv(242, 73%, 57%)
CMYKcmyk(71.2%, 73.3%, 0%, 42.7%)
CIE-LABlab(23.73, 36.99, -58.08)
CIE-LCHlch(23.73, 68.86, 302.50°)
OKLaboklab(35.82% 0.0146 -0.1679)
OKLCHoklch(35.82% 0.169 275)
XYZxyz(6.8670, 4.0180, 27.6022)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2792 #8F9227
analogous
#275A92 #2A2792 #602792
triadic
#2A2792 #922A27 #27922A
tetradic
#2A2792 #92275A #8F9227 #279260
square
#2A2792 #92275A #8F9227 #279260
split-complementary
#2A2792 #926027 #5A9227
monochromatic
#0E0D31 #1C1A62 #2A2792 #3834C2 #625FD4

Accessibility & contrast

On white

11.64
#2A2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2792
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2792#FFFFFF#000000##FFFFFF
##2A27921.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2792;
/* rgb */ color: rgb(42, 39, 146);
/* oklch */ color: oklch(35.8% 0.169 275.0);
Tailwind
colors: {
  custom: {
    50: '#7462b3',
    500: '#2a2792',
    950: '#000000',
  },
}
SCSS
$custom: #2a2792;
$custom-light: #7462b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2792",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 241.682,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.16851,
    "h": 275
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#2A2792
secondary
#B7BA5B
accent
#E147DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2792

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

Preview Lab → · Contrast checker → · Palette generator →

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