#2A2E7D#2A2E7D

#2A2E7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.131 H 275.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2E7D
RGBrgb(42, 46, 125)
HSLhsl(237, 50%, 33%)
HSVhsv(237, 66%, 49%)
CMYKcmyk(66.4%, 63.2%, 0%, 51%)
CIE-LABlab(23.43, 24.99, -45.44)
CIE-LCHlch(23.43, 51.86, 298.81°)
OKLaboklab(34.99% 0.0116 -0.1309)
OKLCHoklch(34.99% 0.131 275.1)
XYZxyz(5.6323, 3.9264, 19.8591)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E7D #7D792A
analogous
#2A587D #2A2E7D #4F2A7D
triadic
#2A2E7D #7D2A2E #2E7D2A
tetradic
#2A2E7D #7D2A58 #7D792A #2A7D4F
square
#2A2E7D #7D2A58 #7D792A #2A7D4F
split-complementary
#2A2E7D #7D4F2A #587D2A
monochromatic
#0B0C21 #1B1D4F #2A2E7D #393FAB #5A5FC8

Accessibility & contrast

On white

11.76
#2A2E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E7D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E7D#FFFFFF#000000##FFFFFF
##2A2E7D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2e7d;
/* rgb */ color: rgb(42, 46, 125);
/* oklch */ color: oklch(35.0% 0.131 275.1);
Tailwind
colors: {
  custom: {
    50: '#6e66a3',
    500: '#2a2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e7d;
$custom-light: #6e66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e7d",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 237.108,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34995,
    "c": 0.1314,
    "h": 275.1
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#2A2E7D
secondary
#ADA956
accent
#D34FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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