#2A2E7C#2A2E7C

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

Color values

HEX#2A2E7C
RGBrgb(42, 46, 124)
HSLhsl(237, 49%, 33%)
HSVhsv(237, 66%, 49%)
CMYKcmyk(66.1%, 62.9%, 0%, 51.4%)
CIE-LABlab(23.34, 24.62, -44.95)
CIE-LCHlch(23.34, 51.25, 298.71°)
OKLaboklab(34.91% 0.0117 -0.1294)
OKLCHoklch(34.91% 0.13 275.2)
XYZxyz(5.5687, 3.9010, 19.5244)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E7C #7C782A
analogous
#2A577C #2A2E7C #4F2A7C
triadic
#2A2E7C #7C2A2E #2E7C2A
tetradic
#2A2E7C #7C2A57 #7C782A #2A7C4F
square
#2A2E7C #7C2A57 #7C782A #2A7C4F
split-complementary
#2A2E7C #7C4F2A #577C2A
monochromatic
#0B0C21 #1B1D4E #2A2E7C #393FAA #595FC7

Accessibility & contrast

On white

11.80
#2A2E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2E7C
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E7C#FFFFFF#000000##FFFFFF
##2A2E7C1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2e7c;
/* rgb */ color: rgb(42, 46, 124);
/* oklch */ color: oklch(34.9% 0.130 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e66a3',
    500: '#2a2e7c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e7c;
$custom-light: #6e66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e7c",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 237.073,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.12996,
    "h": 275.2
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#2A2E7C
secondary
#ADA855
accent
#D24FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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