#2A2E72#2A2E72

#2A2E72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.115 H 275.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2A2E72
RGBrgb(42, 46, 114)
HSLhsl(237, 46%, 31%)
HSVhsv(237, 63%, 45%)
CMYKcmyk(63.2%, 59.6%, 0%, 55.3%)
CIE-LABlab(22.52, 20.93, -39.92)
CIE-LCHlch(22.52, 45.07, 297.67°)
OKLaboklab(34.03% 0.0118 -0.1146)
OKLCHoklch(34.03% 0.115 275.9)
XYZxyz(4.9681, 3.6608, 16.3611)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E72 #726E2A
analogous
#2A5272 #2A2E72 #4A2A72
triadic
#2A2E72 #722A2E #2E722A
tetradic
#2A2E72 #722A52 #726E2A #2A724A
square
#2A2E72 #722A52 #726E2A #2A724A
split-complementary
#2A2E72 #724A2A #52722A
monochromatic
#090A19 #1A1C45 #2A2E72 #3A409F #565CC1

Accessibility & contrast

On white

12.12
#2A2E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E72
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E72#FFFFFF#000000##FFFFFF
##2A2E721.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2e72;
/* rgb */ color: rgb(42, 46, 114);
/* oklch */ color: oklch(34.0% 0.115 275.9);
Tailwind
colors: {
  custom: {
    50: '#6c669b',
    500: '#2a2e72',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e72;
$custom-light: #6c669b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e72",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 236.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34035,
    "c": 0.11523,
    "h": 275.9
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#2A2E72
secondary
#A49F54
accent
#CE52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2E72

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

Preview Lab → · Contrast checker → · Palette generator →

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