#2A2D79#2A2D79

#2A2D79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.127 H 275.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2A2D79
RGBrgb(42, 45, 121)
HSLhsl(238, 48%, 32%)
HSVhsv(238, 65%, 47%)
CMYKcmyk(65.3%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.82, 24.20, -43.89)
CIE-LCHlch(22.82, 50.12, 298.87°)
OKLaboklab(34.44% 0.0127 -0.1263)
OKLCHoklch(34.44% 0.127 275.8)
XYZxyz(5.3433, 3.7491, 18.5275)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D79 #79762A
analogous
#2A5479 #2A2D79 #4F2A79
triadic
#2A2D79 #792A2D #2D792A
tetradic
#2A2D79 #792A54 #79762A #2A794F
square
#2A2D79 #792A54 #79762A #2A794F
split-complementary
#2A2D79 #794F2A #54792A
monochromatic
#0A0B1E #1A1C4C #2A2D79 #3A3EA6 #585CC5

Accessibility & contrast

On white

12.00
#2A2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D79
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D79#FFFFFF#000000##FFFFFF
##2A2D791.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2d79;
/* rgb */ color: rgb(42, 45, 121);
/* oklch */ color: oklch(34.4% 0.127 275.8);
Tailwind
colors: {
  custom: {
    50: '#6d66a0',
    500: '#2a2d79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d79;
$custom-light: #6d66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d79",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 237.722,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34444,
    "c": 0.12696,
    "h": 275.8
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#2A2D79
secondary
#ABA754
accent
#D350D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #2A2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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