#2A2690#2A2690

#2A2690 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.167 H 275.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2690
RGBrgb(42, 38, 144)
HSLhsl(242, 58%, 36%)
HSVhsv(242, 74%, 56%)
CMYKcmyk(70.8%, 73.6%, 0%, 43.5%)
CIE-LABlab(23.31, 36.91, -57.53)
CIE-LCHlch(23.31, 68.35, 302.68°)
OKLaboklab(35.46% 0.0156 -0.1663)
OKLCHoklch(35.46% 0.167 275.4)
XYZxyz(6.6803, 3.8915, 26.7792)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2690 #8C9026
analogous
#265790 #2A2690 #5F2690
triadic
#2A2690 #902A26 #26902A
tetradic
#2A2690 #902657 #8C9026 #26905F
square
#2A2690 #902657 #8C9026 #26905F
split-complementary
#2A2690 #905F26 #579026
monochromatic
#0E0C2F #1C1960 #2A2690 #3833C0 #615CD4

Accessibility & contrast

On white

11.81
#2A2690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2690
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2690#FFFFFF#000000##FFFFFF
##2A26901.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2690;
/* rgb */ color: rgb(42, 38, 144);
/* oklch */ color: oklch(35.5% 0.167 275.4);
Tailwind
colors: {
  custom: {
    50: '#7362b2',
    500: '#2a2690',
    950: '#000000',
  },
}
SCSS
$custom: #2a2690;
$custom-light: #7362b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2690",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 144
  },
  "hsl": {
    "h": 242.264,
    "s": 58.242,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35458,
    "c": 0.16702,
    "h": 275.4
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#2A2690
secondary
#B5B959
accent
#E146DC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2690

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

Preview Lab → · Contrast checker → · Palette generator →

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