#2D2A9B#2D2A9B

#2D2A9B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.176 H 274.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2D2A9B
RGBrgb(45, 42, 155)
HSLhsl(242, 57%, 39%)
HSVhsv(242, 73%, 61%)
CMYKcmyk(71%, 72.9%, 0%, 39.2%)
CIE-LABlab(25.50, 38.62, -60.69)
CIE-LCHlch(25.50, 71.93, 302.47°)
OKLaboklab(37.42% 0.0151 -0.1754)
OKLCHoklch(37.42% 0.176 274.9)
XYZxyz(7.8246, 4.5796, 31.4756)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2A9B #989B2A
analogous
#2A5F9B #2D2A9B #652A9B
triadic
#2D2A9B #9B2D2A #2A9B2D
tetradic
#2D2A9B #9B2A5F #989B2A #2A9B65
square
#2D2A9B #9B2A5F #989B2A #2A9B65
split-complementary
#2D2A9B #9B652A #5F9B2A
monochromatic
#11103B #1F1D6B #2D2A9B #3D39C9 #6C69D6

Accessibility & contrast

On white

10.96
#2D2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2A9B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2A9B#FFFFFF#000000##FFFFFF
##2D2A9B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2a9b;
/* rgb */ color: rgb(45, 42, 155);
/* oklch */ color: oklch(37.4% 0.176 274.9);
Tailwind
colors: {
  custom: {
    50: '#7765ba',
    500: '#2d2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2a9b;
$custom-light: #7765ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2a9b",
  "rgb": {
    "r": 45,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 241.593,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.17608,
    "h": 274.9
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#2D2A9B
secondary
#BABD64
accent
#E147DD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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