#2A2D9D#2A2D9D

#2A2D9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.176 H 273.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2A2D9D
RGBrgb(42, 45, 157)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 73%, 62%)
CMYKcmyk(73.2%, 71.3%, 0%, 38.4%)
CIE-LABlab(26.16, 37.17, -60.82)
CIE-LCHlch(26.16, 71.28, 301.43°)
OKLaboklab(37.9% 0.0093 -0.1759)
OKLCHoklch(37.9% 0.176 273)
XYZxyz(7.9770, 4.8025, 32.3983)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D9D #9D9A2A
analogous
#2A679D #2A2D9D #612A9D
triadic
#2A2D9D #9D2A2D #2D9D2A
tetradic
#2A2D9D #9D2A67 #9D9A2A #2A9D61
square
#2A2D9D #9D2A67 #9D9A2A #2A9D61
split-complementary
#2A2D9D #9D612A #679D2A
monochromatic
#10113C #1D1F6D #2A2D9D #3A3ECA #6A6DD7

Accessibility & contrast

On white

10.71
#2A2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D9D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D9D#FFFFFF#000000##FFFFFF
##2A2D9D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2d9d;
/* rgb */ color: rgb(42, 45, 157);
/* oklch */ color: oklch(37.9% 0.176 273.0);
Tailwind
colors: {
  custom: {
    50: '#7667bb',
    500: '#2a2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d9d;
$custom-light: #7667bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d9d",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 238.435,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.379,
    "c": 0.17617,
    "h": 273
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#2A2D9D
secondary
#BEBB65
accent
#DD47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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