#2A2E5E#2A2E5E

#2A2E5E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.084 H 277.0°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2A2E5E
RGBrgb(42, 46, 94)
HSLhsl(235, 38%, 27%)
HSVhsv(235, 55%, 37%)
CMYKcmyk(55.3%, 51.1%, 0%, 63.1%)
CIE-LABlab(21.03, 13.58, -29.32)
CIE-LCHlch(21.03, 32.31, 294.86°)
OKLaboklab(32.45% 0.0103 -0.0834)
OKLCHoklch(32.45% 0.084 277)
XYZxyz(3.9516, 3.2541, 11.0074)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E5E #5E5A2A
analogous
#2A485E #2A2E5E #402A5E
triadic
#2A2E5E #5E2A2E #2E5E2A
tetradic
#2A2E5E #5E2A48 #5E5A2A #2A5E40
square
#2A2E5E #5E2A48 #5E5A2A #2A5E40
split-complementary
#2A2E5E #5E402A #485E2A
monochromatic
#090A15 #171934 #2A2E5E #3D4388 #5159B1

Accessibility & contrast

On white

12.72
#2A2E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E5E
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E5E#FFFFFF#000000##FFFFFF
##2A2E5E1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183560
Deuteranopia (green-blind)
#13315D
Tritanopia (blue-blind)
#143841
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2e5e;
/* rgb */ color: rgb(42, 46, 94);
/* oklch */ color: oklch(32.4% 0.084 277.0);
Tailwind
colors: {
  custom: {
    50: '#68668c',
    500: '#2a2e5e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e5e;
$custom-light: #68668c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e5e",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 94
  },
  "hsl": {
    "h": 235.385,
    "s": 38.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32449,
    "c": 0.08408,
    "h": 277
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#2A2E5E
secondary
#908C53
accent
#C55ACE
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A2E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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