#2E2A72#2E2A72

#2E2A72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.120 H 280.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2E2A72
RGBrgb(46, 42, 114)
HSLhsl(243, 46%, 31%)
HSVhsv(243, 63%, 45%)
CMYKcmyk(59.6%, 63.2%, 0%, 55.3%)
CIE-LABlab(21.77, 24.44, -41.12)
CIE-LCHlch(21.77, 47.84, 300.73°)
OKLaboklab(33.56% 0.0213 -0.1181)
OKLCHoklch(33.56% 0.12 280.2)
XYZxyz(4.9910, 3.4513, 16.3195)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A72 #6E722A
analogous
#2A4A72 #2E2A72 #522A72
triadic
#2E2A72 #722E2A #2A722E
tetradic
#2E2A72 #722A4A #6E722A #2A7252
square
#2E2A72 #722A4A #6E722A #2A7252
split-complementary
#2E2A72 #72522A #4A722A
monochromatic
#0A0919 #1C1A45 #2E2A72 #403A9F #5C56C1

Accessibility & contrast

On white

12.42
#2E2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A72
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A72#FFFFFF#000000##FFFFFF
##2E2A721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#083B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2a72;
/* rgb */ color: rgb(46, 42, 114);
/* oklch */ color: oklch(33.6% 0.120 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e639b',
    500: '#2e2a72',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a72;
$custom-light: #6e639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a72",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 243.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.11999,
    "h": 280.2
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#2E2A72
secondary
#9FA454
accent
#D652CE
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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