#2A2E97#2A2E97

#2A2E97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.167 H 273.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2E97
RGBrgb(42, 46, 151)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 59%)
CMYKcmyk(72.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(25.80, 34.43, -57.75)
CIE-LCHlch(25.80, 67.23, 300.80°)
OKLaboklab(37.46% 0.0095 -0.1669)
OKLCHoklch(37.46% 0.167 273.2)
XYZxyz(7.5159, 4.6799, 29.7794)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E97 #97932A
analogous
#2A6497 #2A2E97 #5C2A97
triadic
#2A2E97 #972A2E #2E972A
tetradic
#2A2E97 #972A64 #97932A #2A975C
square
#2A2E97 #972A64 #97932A #2A975C
split-complementary
#2A2E97 #975C2A #64972A
monochromatic
#0F1137 #1D1F67 #2A2E97 #373DC7 #676BD5

Accessibility & contrast

On white

10.85
#2A2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E97
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E97#FFFFFF#000000##FFFFFF
##2A2E971.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2e97;
/* rgb */ color: rgb(42, 46, 151);
/* oklch */ color: oklch(37.5% 0.167 273.2);
Tailwind
colors: {
  custom: {
    50: '#7467b7',
    500: '#2a2e97',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e97;
$custom-light: #7467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e97",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 237.798,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3746,
    "c": 0.1672,
    "h": 273.2
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#2A2E97
secondary
#BBB862
accent
#DA48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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