#2A2D96#2A2D96

#2A2D96 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.167 H 273.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2D96
RGBrgb(42, 45, 150)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 59%)
CMYKcmyk(72%, 70%, 0%, 41.2%)
CIE-LABlab(25.47, 34.70, -57.67)
CIE-LCHlch(25.47, 67.31, 301.03°)
OKLaboklab(37.19% 0.0102 -0.1667)
OKLCHoklch(37.19% 0.167 273.5)
XYZxyz(7.3964, 4.5703, 29.3406)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D96 #96932A
analogous
#2A6396 #2A2D96 #5D2A96
triadic
#2A2D96 #962A2D #2D962A
tetradic
#2A2D96 #962A63 #96932A #2A965D
square
#2A2D96 #962A63 #96932A #2A965D
split-complementary
#2A2D96 #965D2A #63962A
monochromatic
#0F1036 #1D1F66 #2A2D96 #373BC6 #6669D4

Accessibility & contrast

On white

10.97
#2A2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D96
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D96#FFFFFF#000000##FFFFFF
##2A2D961.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2d96;
/* rgb */ color: rgb(42, 45, 150);
/* oklch */ color: oklch(37.2% 0.167 273.5);
Tailwind
colors: {
  custom: {
    50: '#7466b6',
    500: '#2a2d96',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d96;
$custom-light: #7466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d96",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 238.333,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37193,
    "c": 0.16703,
    "h": 273.5
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#2A2D96
secondary
#BAB861
accent
#DB48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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