#2A2E7A#2A2E7A

#2A2E7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.127 H 275.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2E7A
RGBrgb(42, 46, 122)
HSLhsl(237, 49%, 32%)
HSVhsv(237, 66%, 48%)
CMYKcmyk(65.6%, 62.3%, 0%, 52.2%)
CIE-LABlab(23.17, 23.88, -43.96)
CIE-LCHlch(23.17, 50.03, 298.52°)
OKLaboklab(34.73% 0.0117 -0.1265)
OKLCHoklch(34.73% 0.127 275.3)
XYZxyz(5.4435, 3.8509, 18.8650)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E7A #7A762A
analogous
#2A567A #2A2E7A #4E2A7A
triadic
#2A2E7A #7A2A2E #2E7A2A
tetradic
#2A2E7A #7A2A56 #7A762A #2A7A4E
square
#2A2E7A #7A2A56 #7A762A #2A7A4E
split-complementary
#2A2E7A #7A4E2A #567A2A
monochromatic
#0B0C1F #1A1D4C #2A2E7A #3A3FA8 #595EC6

Accessibility & contrast

On white

11.86
#2A2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E7A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E7A#FFFFFF#000000##FFFFFF
##2A2E7A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2e7a;
/* rgb */ color: rgb(42, 46, 122);
/* oklch */ color: oklch(34.7% 0.127 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d66a1',
    500: '#2a2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e7a;
$custom-light: #6d66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e7a",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 237,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34728,
    "c": 0.12705,
    "h": 275.3
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2A2E7A
secondary
#ABA755
accent
#D14FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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