#2A2D8E#2A2D8E

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

Color values

HEX#2A2D8E
RGBrgb(42, 45, 142)
HSLhsl(238, 54%, 36%)
HSVhsv(238, 70%, 56%)
CMYKcmyk(70.4%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.71, 31.84, -54.00)
CIE-LCHlch(24.71, 62.69, 300.53°)
OKLaboklab(36.4% 0.0112 -0.156)
OKLCHoklch(36.4% 0.156 274.1)
XYZxyz(6.7741, 4.3214, 26.0631)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D8E #8E8B2A
analogous
#2A5F8E #2A2D8E #592A8E
triadic
#2A2D8E #8E2A2D #2D8E2A
tetradic
#2A2D8E #8E2A5F #8E8B2A #2A8E59
square
#2A2D8E #8E2A5F #8E8B2A #2A8E59
split-complementary
#2A2D8E #8E592A #5F8E2A
monochromatic
#0E0F30 #1C1E5F #2A2D8E #383CBD #6265D1

Accessibility & contrast

On white

11.26
#2A2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D8E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D8E#FFFFFF#000000##FFFFFF
##2A2D8E1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2d8e;
/* rgb */ color: rgb(42, 45, 142);
/* oklch */ color: oklch(36.4% 0.156 274.1);
Tailwind
colors: {
  custom: {
    50: '#7266b0',
    500: '#2a2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d8e;
$custom-light: #7266b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d8e",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 238.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36404,
    "c": 0.15636,
    "h": 274.1
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#2A2D8E
secondary
#B6B45D
accent
#D94ADE
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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