#2A2D7A#2A2D7A

#2A2D7A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.128 H 275.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2D7A
RGBrgb(42, 45, 122)
HSLhsl(238, 49%, 32%)
HSVhsv(238, 66%, 48%)
CMYKcmyk(65.6%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.91, 24.56, -44.39)
CIE-LCHlch(22.91, 50.73, 298.96°)
OKLaboklab(34.53% 0.0127 -0.1278)
OKLCHoklch(34.53% 0.128 275.7)
XYZxyz(5.4049, 3.7737, 18.8522)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D7A #7A772A
analogous
#2A557A #2A2D7A #4F2A7A
triadic
#2A2D7A #7A2A2D #2D7A2A
tetradic
#2A2D7A #7A2A55 #7A772A #2A7A4F
square
#2A2D7A #7A2A55 #7A772A #2A7A4F
split-complementary
#2A2D7A #7A4F2A #557A2A
monochromatic
#0B0B1F #1A1C4C #2A2D7A #3A3EA8 #595DC6

Accessibility & contrast

On white

11.97
#2A2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D7A
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D7A#FFFFFF#000000##FFFFFF
##2A2D7A1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2d7a;
/* rgb */ color: rgb(42, 45, 122);
/* oklch */ color: oklch(34.5% 0.128 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d66a1',
    500: '#2a2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d7a;
$custom-light: #6d66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d7a",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 237.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34533,
    "c": 0.12841,
    "h": 275.7
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#2A2D7A
secondary
#ABA855
accent
#D34FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #2A2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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