#2A2D9E#2A2D9E

#2A2D9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.177 H 273.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2A2D9E
RGBrgb(42, 45, 158)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 73%, 62%)
CMYKcmyk(73.4%, 71.5%, 0%, 38%)
CIE-LABlab(26.26, 37.52, -61.27)
CIE-LCHlch(26.26, 71.84, 301.48°)
OKLaboklab(38% 0.0092 -0.1772)
OKLCHoklch(38% 0.177 273)
XYZxyz(8.0627, 4.8368, 32.8498)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D9E #9E9B2A
analogous
#2A679E #2A2D9E #612A9E
triadic
#2A2D9E #9E2A2D #2D9E2A
tetradic
#2A2D9E #9E2A67 #9E9B2A #2A9E61
square
#2A2D9E #9E2A67 #9E9B2A #2A9E61
split-complementary
#2A2D9E #9E612A #679E2A
monochromatic
#10113D #1D1F6E #2A2D9E #3A3ECB #6B6ED8

Accessibility & contrast

On white

10.67
#2A2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D9E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D9E#FFFFFF#000000##FFFFFF
##2A2D9E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2d9e;
/* rgb */ color: rgb(42, 45, 158);
/* oklch */ color: oklch(38.0% 0.177 273.0);
Tailwind
colors: {
  custom: {
    50: '#7667bc',
    500: '#2a2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d9e;
$custom-light: #7667bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d9e",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 238.448,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38002,
    "c": 0.17745,
    "h": 273
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#2A2D9E
secondary
#BEBC66
accent
#DD47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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