#2A3079#2A3079

#2A3079 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.123 H 274.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A3079
RGBrgb(42, 48, 121)
HSLhsl(235, 48%, 32%)
HSVhsv(235, 65%, 47%)
CMYKcmyk(65.3%, 60.3%, 0%, 52.5%)
CIE-LABlab(23.63, 22.15, -42.59)
CIE-LCHlch(23.63, 48.00, 297.48°)
OKLaboklab(35.04% 0.0098 -0.1225)
OKLCHoklch(35.04% 0.123 274.6)
XYZxyz(5.4619, 3.9862, 18.5670)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3079 #79732A
analogous
#2A5879 #2A3079 #4C2A79
triadic
#2A3079 #792A30 #30792A
tetradic
#2A3079 #792A58 #79732A #2A794C
square
#2A3079 #792A58 #79732A #2A794C
split-complementary
#2A3079 #794C2A #58792A
monochromatic
#0A0C1E #1A1E4C #2A3079 #3A42A6 #5861C5

Accessibility & contrast

On white

11.68
#2A3079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A3079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3079
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3079#FFFFFF#000000##FFFFFF
##2A30791.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a3079;
/* rgb */ color: rgb(42, 48, 121);
/* oklch */ color: oklch(35.0% 0.123 274.6);
Tailwind
colors: {
  custom: {
    50: '#6d68a0',
    500: '#2a3079',
    950: '#000000',
  },
}
SCSS
$custom: #2a3079;
$custom-light: #6d68a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3079",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 121
  },
  "hsl": {
    "h": 235.443,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35037,
    "c": 0.12285,
    "h": 274.6
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#2A3079
secondary
#ABA454
accent
#CE50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A3079

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

Preview Lab → · Contrast checker → · Palette generator →

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