#2A2EAC#2A2EAC

#2A2EAC is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.194 H 271.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2A2EAC
RGBrgb(42, 46, 172)
HSLhsl(238, 61%, 42%)
HSVhsv(238, 76%, 67%)
CMYKcmyk(75.6%, 73.3%, 0%, 32.5%)
CIE-LABlab(27.91, 41.76, -67.02)
CIE-LCHlch(27.91, 78.97, 301.93°)
OKLaboklab(39.61% 0.0065 -0.194)
OKLCHoklch(39.61% 0.194 271.9)
XYZxyz(9.3757, 5.4238, 39.5745)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EAC #ACA82A
analogous
#2A6FAC #2A2EAC #672AAC
triadic
#2A2EAC #AC2A2E #2EAC2A
tetradic
#2A2EAC #AC2A6F #ACA82A #2AAC67
square
#2A2EAC #AC2A6F #ACA82A #2AAC67
split-complementary
#2A2EAC #AC672A #6FAC2A
monochromatic
#12144A #1E217B #2A2EAC #4247D1 #7377DD

Accessibility & contrast

On white

10.07
#2A2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EAC
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EAC#FFFFFF#000000##FFFFFF
##2A2EAC1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#003BAA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2eac;
/* rgb */ color: rgb(42, 46, 172);
/* oklch */ color: oklch(39.6% 0.194 271.9);
Tailwind
colors: {
  custom: {
    50: '#7968c6',
    500: '#2a2eac',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eac;
$custom-light: #7968c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eac",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 238.154,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39608,
    "c": 0.1941,
    "h": 271.9
  },
  "luminance": 0.05425
}

Semantic roles & 50–950 ramp

primary
#2A2EAC
secondary
#C4C26D
accent
#DF44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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