#2A2E7F#2A2E7F

#2A2E7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.134 H 274.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2A2E7F
RGBrgb(42, 46, 127)
HSLhsl(237, 50%, 33%)
HSVhsv(237, 67%, 50%)
CMYKcmyk(66.9%, 63.8%, 0%, 50.2%)
CIE-LABlab(23.60, 25.73, -46.43)
CIE-LCHlch(23.60, 53.08, 298.99°)
OKLaboklab(35.17% 0.0116 -0.1338)
OKLCHoklch(35.17% 0.134 274.9)
XYZxyz(5.7613, 3.9780, 20.5388)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E7F #7F7B2A
analogous
#2A587F #2A2E7F #502A7F
triadic
#2A2E7F #7F2A2E #2E7F2A
tetradic
#2A2E7F #7F2A58 #7F7B2A #2A7F50
square
#2A2E7F #7F2A58 #7F7B2A #2A7F50
split-complementary
#2A2E7F #7F502A #587F2A
monochromatic
#0C0D23 #1B1D51 #2A2E7F #393FAD #5B60C9

Accessibility & contrast

On white

11.69
#2A2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E7F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E7F#FFFFFF#000000##FFFFFF
##2A2E7F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2e7f;
/* rgb */ color: rgb(42, 46, 127);
/* oklch */ color: oklch(35.2% 0.134 274.9);
Tailwind
colors: {
  custom: {
    50: '#6f66a5',
    500: '#2a2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e7f;
$custom-light: #6f66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e7f",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 237.176,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35175,
    "c": 0.13426,
    "h": 274.9
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#2A2E7F
secondary
#AEAA57
accent
#D34EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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