#2A2D7E#2A2D7E

#2A2D7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.134 H 275.4°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2A2D7E
RGBrgb(42, 45, 126)
HSLhsl(238, 50%, 33%)
HSVhsv(238, 67%, 49%)
CMYKcmyk(66.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(23.25, 26.03, -46.36)
CIE-LCHlch(23.25, 53.17, 299.32°)
OKLaboklab(34.89% 0.0125 -0.1336)
OKLCHoklch(34.89% 0.134 275.4)
XYZxyz(5.6579, 3.8749, 20.1844)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D7E #7E7B2A
analogous
#2A577E #2A2D7E #512A7E
triadic
#2A2D7E #7E2A2D #2D7E2A
tetradic
#2A2D7E #7E2A57 #7E7B2A #2A7E51
square
#2A2D7E #7E2A57 #7E7B2A #2A7E51
split-complementary
#2A2D7E #7E512A #577E2A
monochromatic
#0B0C22 #1B1D50 #2A2D7E #393DAC #5A5EC8

Accessibility & contrast

On white

11.83
#2A2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D7E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D7E#FFFFFF#000000##FFFFFF
##2A2D7E1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2d7e;
/* rgb */ color: rgb(42, 45, 126);
/* oklch */ color: oklch(34.9% 0.134 275.4);
Tailwind
colors: {
  custom: {
    50: '#6e66a4',
    500: '#2a2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d7e;
$custom-light: #6e66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d7e",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 237.857,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34894,
    "c": 0.13415,
    "h": 275.4
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#2A2D7E
secondary
#AEAB56
accent
#D54EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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