#2A2597#2A2597

#2A2597 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.177 H 274.8°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2A2597
RGBrgb(42, 37, 151)
HSLhsl(243, 61%, 37%)
HSVhsv(243, 75%, 59%)
CMYKcmyk(72.2%, 75.5%, 0%, 40.8%)
CIE-LABlab(23.83, 39.87, -60.99)
CIE-LCHlch(23.83, 72.87, 303.17°)
OKLaboklab(36.05% 0.0148 -0.1764)
OKLCHoklch(36.05% 0.177 274.8)
XYZxyz(7.2005, 4.0490, 29.6742)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2597 #929725
analogous
#255997 #2A2597 #632597
triadic
#2A2597 #972A25 #25972A
tetradic
#2A2597 #972559 #929725 #259763
square
#2A2597 #972559 #929725 #259763
split-complementary
#2A2597 #976325 #599725
monochromatic
#0F0D35 #1C1966 #2A2597 #3831C8 #645FD8

Accessibility & contrast

On white

11.60
#2A2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2597
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2597#FFFFFF#000000##FFFFFF
##2A25971.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2597;
/* rgb */ color: rgb(42, 37, 151);
/* oklch */ color: oklch(36.0% 0.177 274.8);
Tailwind
colors: {
  custom: {
    50: '#7561b7',
    500: '#2a2597',
    950: '#000000',
  },
}
SCSS
$custom: #2a2597;
$custom-light: #7561b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2597",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 242.632,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.17699,
    "h": 274.8
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#2A2597
secondary
#B8BD5B
accent
#E444DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2597

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

Preview Lab → · Contrast checker → · Palette generator →

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