#2A2F79#2A2F79

#2A2F79 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.124 H 275.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2A2F79
RGBrgb(42, 47, 121)
HSLhsl(236, 48%, 32%)
HSVhsv(236, 65%, 47%)
CMYKcmyk(65.3%, 61.2%, 0%, 52.5%)
CIE-LABlab(23.36, 22.83, -43.02)
CIE-LCHlch(23.36, 48.71, 297.95°)
OKLaboklab(34.84% 0.0108 -0.1238)
OKLCHoklch(34.84% 0.124 275)
XYZxyz(5.4214, 3.9053, 18.5536)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F79 #79742A
analogous
#2A5679 #2A2F79 #4D2A79
triadic
#2A2F79 #792A2F #2F792A
tetradic
#2A2F79 #792A56 #79742A #2A794D
square
#2A2F79 #792A56 #79742A #2A794D
split-complementary
#2A2F79 #794D2A #56792A
monochromatic
#0A0C1E #1A1D4C #2A2F79 #3A41A6 #585FC5

Accessibility & contrast

On white

11.79
#2A2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F79
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F79#FFFFFF#000000##FFFFFF
##2A2F791.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2f79;
/* rgb */ color: rgb(42, 47, 121);
/* oklch */ color: oklch(34.8% 0.124 275.0);
Tailwind
colors: {
  custom: {
    50: '#6d67a0',
    500: '#2a2f79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f79;
$custom-light: #6d67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f79",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 236.203,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.12423,
    "h": 275
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#2A2F79
secondary
#ABA554
accent
#CF50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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