#2A2D8B#2A2D8B

#2A2D8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.152 H 274.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2A2D8B
RGBrgb(42, 45, 139)
HSLhsl(238, 54%, 35%)
HSVhsv(238, 70%, 55%)
CMYKcmyk(69.8%, 67.6%, 0%, 45.5%)
CIE-LABlab(24.43, 30.76, -52.59)
CIE-LCHlch(24.43, 60.93, 300.32°)
OKLaboklab(36.11% 0.0115 -0.1519)
OKLCHoklch(36.11% 0.152 274.3)
XYZxyz(6.5519, 4.2325, 24.8928)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D8B #8B882A
analogous
#2A5E8B #2A2D8B #572A8B
triadic
#2A2D8B #8B2A2D #2D8B2A
tetradic
#2A2D8B #8B2A5E #8B882A #2A8B57
square
#2A2D8B #8B2A5E #8B882A #2A8B57
split-complementary
#2A2D8B #8B572A #5E8B2A
monochromatic
#0E0F2D #1C1E5C #2A2D8B #383CBA #6064CF

Accessibility & contrast

On white

11.37
#2A2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D8B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D8B#FFFFFF#000000##FFFFFF
##2A2D8B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2d8b;
/* rgb */ color: rgb(42, 45, 139);
/* oklch */ color: oklch(36.1% 0.152 274.3);
Tailwind
colors: {
  custom: {
    50: '#7166ae',
    500: '#2a2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d8b;
$custom-light: #7166ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d8b",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 238.144,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.15228,
    "h": 274.3
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#2A2D8B
secondary
#B5B25C
accent
#D84BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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