#2A3279#2A3279

#2A3279 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.4% C 0.120 H 273.7°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#2A3279
RGBrgb(42, 50, 121)
HSLhsl(234, 48%, 32%)
HSVhsv(234, 65%, 47%)
CMYKcmyk(65.3%, 58.7%, 0%, 52.5%)
CIE-LABlab(24.17, 20.77, -41.70)
CIE-LCHlch(24.17, 46.59, 296.48°)
OKLaboklab(35.44% 0.0078 -0.1198)
OKLCHoklch(35.44% 0.12 273.7)
XYZxyz(5.5455, 4.1535, 18.5949)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3279 #79712A
analogous
#2A5A79 #2A3279 #4A2A79
triadic
#2A3279 #792A32 #32792A
tetradic
#2A3279 #792A5A #79712A #2A794A
square
#2A3279 #792A5A #79712A #2A794A
split-complementary
#2A3279 #794A2A #5A792A
monochromatic
#0A0C1E #1A1F4C #2A3279 #3A45A6 #5863C5

Accessibility & contrast

On white

11.47
#2A3279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A3279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3279
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3279#FFFFFF#000000##FFFFFF
##2A32791.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a3279;
/* rgb */ color: rgb(42, 50, 121);
/* oklch */ color: oklch(35.4% 0.120 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d69a0',
    500: '#2a3279',
    950: '#000000',
  },
}
SCSS
$custom: #2a3279;
$custom-light: #6d69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3279",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 121
  },
  "hsl": {
    "h": 233.924,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35444,
    "c": 0.12008,
    "h": 273.7
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#2A3279
secondary
#ABA254
accent
#CA50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A3279

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

Preview Lab → · Contrast checker → · Palette generator →

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