#2A2E8A#2A2E8A

#2A2E8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.150 H 274.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A2E8A
RGBrgb(42, 46, 138)
HSLhsl(238, 53%, 35%)
HSVhsv(238, 70%, 54%)
CMYKcmyk(69.6%, 66.7%, 0%, 45.9%)
CIE-LABlab(24.58, 29.75, -51.72)
CIE-LCHlch(24.58, 59.67, 299.91°)
OKLaboklab(36.2% 0.0108 -0.1493)
OKLCHoklch(36.2% 0.15 274.1)
XYZxyz(6.5178, 4.2806, 24.5226)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E8A #8A862A
analogous
#2A5E8A #2A2E8A #562A8A
triadic
#2A2E8A #8A2A2E #2E8A2A
tetradic
#2A2E8A #8A2A5E #8A862A #2A8A56
square
#2A2E8A #8A2A5E #8A862A #2A8A56
split-complementary
#2A2E8A #8A562A #5E8A2A
monochromatic
#0D0F2C #1C1E5B #2A2E8A #383EB9 #6064CF

Accessibility & contrast

On white

11.31
#2A2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E8A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E8A#FFFFFF#000000##FFFFFF
##2A2E8A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2e8a;
/* rgb */ color: rgb(42, 46, 138);
/* oklch */ color: oklch(36.2% 0.150 274.1);
Tailwind
colors: {
  custom: {
    50: '#7167ad',
    500: '#2a2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e8a;
$custom-light: #7167ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e8a",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 237.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.14968,
    "h": 274.1
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#2A2E8A
secondary
#B4B15B
accent
#D74BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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