#2A2E5C#2A2E5C

#2A2E5C is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.3% C 0.081 H 277.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2A2E5C
RGBrgb(42, 46, 92)
HSLhsl(235, 37%, 26%)
HSVhsv(235, 54%, 36%)
CMYKcmyk(54.3%, 50%, 0%, 63.9%)
CIE-LABlab(20.90, 12.86, -28.21)
CIE-LCHlch(20.90, 31.01, 294.50°)
OKLaboklab(32.3% 0.01 -0.0802)
OKLCHoklch(32.3% 0.081 277.1)
XYZxyz(3.8630, 3.2187, 10.5409)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E5C #5C582A
analogous
#2A475C #2A2E5C #3F2A5C
triadic
#2A2E5C #5C2A2E #2E5C2A
tetradic
#2A2E5C #5C2A47 #5C582A #2A5C3F
square
#2A2E5C #5C2A47 #5C582A #2A5C3F
split-complementary
#2A2E5C #5C3F2A #475C2A
monochromatic
#0A0B15 #171932 #2A2E5C #3D4386 #5158B0

Accessibility & contrast

On white

12.78
#2A2E5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2E5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E5C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E5C#FFFFFF#000000##FFFFFF
##2A2E5C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A345E
Deuteranopia (green-blind)
#15305B
Tritanopia (blue-blind)
#163840
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2e5c;
/* rgb */ color: rgb(42, 46, 92);
/* oklch */ color: oklch(32.3% 0.081 277.1);
Tailwind
colors: {
  custom: {
    50: '#68668a',
    500: '#2a2e5c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e5c;
$custom-light: #68668a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e5c",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 92
  },
  "hsl": {
    "h": 235.2,
    "s": 37.313,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.08083,
    "h": 277.1
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#2A2E5C
secondary
#8E8A53
accent
#C45BCD
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A2E5C

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

Preview Lab → · Contrast checker → · Palette generator →

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