#2A2E8D#2A2E8D

#2A2E8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.154 H 273.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2A2E8D
RGBrgb(42, 46, 141)
HSLhsl(238, 54%, 36%)
HSVhsv(238, 70%, 55%)
CMYKcmyk(70.2%, 67.4%, 0%, 44.7%)
CIE-LABlab(24.85, 30.84, -53.13)
CIE-LCHlch(24.85, 61.43, 300.13°)
OKLaboklab(36.48% 0.0106 -0.1534)
OKLCHoklch(36.48% 0.154 273.9)
XYZxyz(6.7380, 4.3687, 25.6823)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E8D #8D892A
analogous
#2A5F8D #2A2E8D #572A8D
triadic
#2A2E8D #8D2A2E #2E8D2A
tetradic
#2A2E8D #8D2A5F #8D892A #2A8D57
square
#2A2E8D #8D2A5F #8D892A #2A8D57
split-complementary
#2A2E8D #8D572A #5F8D2A
monochromatic
#0E0F2F #1C1F5E #2A2E8D #383DBC #6166D0

Accessibility & contrast

On white

11.21
#2A2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E8D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E8D#FFFFFF#000000##FFFFFF
##2A2E8D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2e8d;
/* rgb */ color: rgb(42, 46, 141);
/* oklch */ color: oklch(36.5% 0.154 273.9);
Tailwind
colors: {
  custom: {
    50: '#7267af',
    500: '#2a2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e8d;
$custom-light: #7267af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e8d",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 237.576,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36483,
    "c": 0.15379,
    "h": 273.9
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#2A2E8D
secondary
#B6B25D
accent
#D84ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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