#2A336A#2A336A

#2A336A is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.096 H 273.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2A336A
RGBrgb(42, 51, 106)
HSLhsl(232, 43%, 29%)
HSVhsv(232, 60%, 42%)
CMYKcmyk(60.4%, 51.9%, 0%, 58.4%)
CIE-LABlab(23.34, 14.47, -33.45)
CIE-LCHlch(23.34, 36.44, 293.39°)
OKLaboklab(34.46% 0.0056 -0.0955)
OKLCHoklch(34.46% 0.096 273.4)
XYZxyz(4.7393, 3.9002, 14.1359)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A336A #6A612A
analogous
#2A536A #2A336A #412A6A
triadic
#2A336A #6A2A33 #336A2A
tetradic
#2A336A #6A2A53 #6A612A #2A6A41
square
#2A336A #6A2A53 #6A612A #2A6A41
split-complementary
#2A336A #6A412A #536A2A
monochromatic
#090B16 #191E3E #2A336A #3B4896 #5362BB

Accessibility & contrast

On white

11.80
#2A336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A336A
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A336A#FFFFFF#000000##FFFFFF
##2A336A1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173A6C
Deuteranopia (green-blind)
#0D3569
Tritanopia (blue-blind)
#033F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a336a;
/* rgb */ color: rgb(42, 51, 106);
/* oklch */ color: oklch(34.5% 0.096 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a6a95',
    500: '#2a336a',
    950: '#000000',
  },
}
SCSS
$custom: #2a336a;
$custom-light: #6a6a95;
$custom-dark: #000000;
JSON
{
  "hex": "#2a336a",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 231.563,
    "s": 43.243,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34461,
    "c": 0.09569,
    "h": 273.4
  },
  "luminance": 0.03901
}

Semantic roles & 50–950 ramp

primary
#2A336A
secondary
#9C9254
accent
#C155D3
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2A336A

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

Preview Lab → · Contrast checker → · Palette generator →

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