#2A2D7C#2A2D7C

#2A2D7C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.131 H 275.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2D7C
RGBrgb(42, 45, 124)
HSLhsl(238, 49%, 33%)
HSVhsv(238, 66%, 49%)
CMYKcmyk(66.1%, 63.7%, 0%, 51.4%)
CIE-LABlab(23.08, 25.30, -45.38)
CIE-LCHlch(23.08, 51.95, 299.14°)
OKLaboklab(34.71% 0.0126 -0.1307)
OKLCHoklch(34.71% 0.131 275.5)
XYZxyz(5.5301, 3.8238, 19.5115)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D7C #7C792A
analogous
#2A567C #2A2D7C #502A7C
triadic
#2A2D7C #7C2A2D #2D7C2A
tetradic
#2A2D7C #7C2A56 #7C792A #2A7C50
square
#2A2D7C #7C2A56 #7C792A #2A7C50
split-complementary
#2A2D7C #7C502A #567C2A
monochromatic
#0B0C21 #1B1C4E #2A2D7C #393EAA #595DC7

Accessibility & contrast

On white

11.90
#2A2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D7C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D7C#FFFFFF#000000##FFFFFF
##2A2D7C1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2d7c;
/* rgb */ color: rgb(42, 45, 124);
/* oklch */ color: oklch(34.7% 0.131 275.5);
Tailwind
colors: {
  custom: {
    50: '#6e66a3',
    500: '#2a2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d7c;
$custom-light: #6e66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d7c",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 237.805,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.13129,
    "h": 275.5
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#2A2D7C
secondary
#ADA955
accent
#D44FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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