#2A2E79#2A2E79

#2A2E79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.126 H 275.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2A2E79
RGBrgb(42, 46, 121)
HSLhsl(237, 48%, 32%)
HSVhsv(237, 65%, 47%)
CMYKcmyk(65.3%, 62%, 0%, 52.5%)
CIE-LABlab(23.09, 23.51, -43.46)
CIE-LCHlch(23.09, 49.41, 298.42°)
OKLaboklab(34.64% 0.0118 -0.125)
OKLCHoklch(34.64% 0.126 275.4)
XYZxyz(5.3819, 3.8263, 18.5404)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E79 #79752A
analogous
#2A5679 #2A2E79 #4E2A79
triadic
#2A2E79 #792A2E #2E792A
tetradic
#2A2E79 #792A56 #79752A #2A794E
square
#2A2E79 #792A56 #79752A #2A794E
split-complementary
#2A2E79 #794E2A #56792A
monochromatic
#0A0B1E #1A1D4C #2A2E79 #3A3FA6 #585EC5

Accessibility & contrast

On white

11.90
#2A2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E79
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E79#FFFFFF#000000##FFFFFF
##2A2E791.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2e79;
/* rgb */ color: rgb(42, 46, 121);
/* oklch */ color: oklch(34.6% 0.126 275.4);
Tailwind
colors: {
  custom: {
    50: '#6d66a0',
    500: '#2a2e79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e79;
$custom-light: #6d66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e79",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 236.962,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34639,
    "c": 0.12559,
    "h": 275.4
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#2A2E79
secondary
#ABA654
accent
#D150D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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