#2A2D9A#2A2D9A

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

Color values

HEX#2A2D9A
RGBrgb(42, 45, 154)
HSLhsl(238, 57%, 38%)
HSVhsv(238, 73%, 60%)
CMYKcmyk(72.7%, 70.8%, 0%, 39.6%)
CIE-LABlab(25.87, 36.12, -59.48)
CIE-LCHlch(25.87, 69.59, 301.26°)
OKLaboklab(37.6% 0.0097 -0.172)
OKLCHoklch(37.6% 0.172 273.2)
XYZxyz(7.7240, 4.7013, 31.0660)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D9A #9A972A
analogous
#2A659A #2A2D9A #5F2A9A
triadic
#2A2D9A #9A2A2D #2D9A2A
tetradic
#2A2D9A #9A2A65 #9A972A #2A9A5F
square
#2A2D9A #9A2A65 #9A972A #2A9A5F
split-complementary
#2A2D9A #9A5F2A #659A2A
monochromatic
#10113A #1D1F6A #2A2D9A #383CC9 #686BD6

Accessibility & contrast

On white

10.82
#2A2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D9A
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D9A#FFFFFF#000000##FFFFFF
##2A2D9A1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2d9a;
/* rgb */ color: rgb(42, 45, 154);
/* oklch */ color: oklch(37.6% 0.172 273.2);
Tailwind
colors: {
  custom: {
    50: '#7567b9',
    500: '#2a2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d9a;
$custom-light: #7567b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d9a",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 238.393,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37595,
    "c": 0.17227,
    "h": 273.2
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#2A2D9A
secondary
#BCBA63
accent
#DC47E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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