#2A2699#2A2699

#2A2699 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.178 H 274.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2A2699
RGBrgb(42, 38, 153)
HSLhsl(242, 60%, 37%)
HSVhsv(242, 75%, 60%)
CMYKcmyk(72.5%, 75.2%, 0%, 40%)
CIE-LABlab(24.25, 39.97, -61.53)
CIE-LCHlch(24.25, 73.37, 303.01°)
OKLaboklab(36.41% 0.0139 -0.1779)
OKLCHoklch(36.41% 0.178 274.5)
XYZxyz(7.3958, 4.1777, 30.5474)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2699 #959926
analogous
#265B99 #2A2699 #642699
triadic
#2A2699 #992A26 #26992A
tetradic
#2A2699 #99265B #959926 #269964
square
#2A2699 #99265B #959926 #269964
split-complementary
#2A2699 #996426 #5B9926
monochromatic
#0F0E37 #1D1A68 #2A2699 #3732CA #6662D8

Accessibility & contrast

On white

11.44
#2A2699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2699
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2699#FFFFFF#000000##FFFFFF
##2A26991.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2699;
/* rgb */ color: rgb(42, 38, 153);
/* oklch */ color: oklch(36.4% 0.178 274.5);
Tailwind
colors: {
  custom: {
    50: '#7562b8',
    500: '#2a2699',
    950: '#000000',
  },
}
SCSS
$custom: #2a2699;
$custom-light: #7562b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2699",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 242.087,
    "s": 60.209,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.17849,
    "h": 274.5
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#2A2699
secondary
#BABD5E
accent
#E344DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2699

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

Preview Lab → · Contrast checker → · Palette generator →

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