#2A3299#2A3299

#2A3299 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.165 H 272.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2A3299
RGBrgb(42, 50, 153)
HSLhsl(236, 57%, 38%)
HSVhsv(236, 73%, 60%)
CMYKcmyk(72.5%, 67.3%, 0%, 40%)
CIE-LABlab(26.94, 32.59, -57.11)
CIE-LCHlch(26.94, 65.75, 299.72°)
OKLaboklab(38.34% 0.0066 -0.165)
OKLCHoklch(38.34% 0.165 272.3)
XYZxyz(7.8433, 5.0726, 30.6966)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3299 #99912A
analogous
#2A6999 #2A3299 #592A99
triadic
#2A3299 #992A32 #32992A
tetradic
#2A3299 #992A69 #99912A #2A9959
square
#2A3299 #992A69 #99912A #2A9959
split-complementary
#2A3299 #99592A #69992A
monochromatic
#101339 #1D2269 #2A3299 #3842C8 #6870D6

Accessibility & contrast

On white

10.42
#2A3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3299
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3299#FFFFFF#000000##FFFFFF
##2A32991.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3299;
/* rgb */ color: rgb(42, 50, 153);
/* oklch */ color: oklch(38.3% 0.165 272.3);
Tailwind
colors: {
  custom: {
    50: '#746ab8',
    500: '#2a3299',
    950: '#000000',
  },
}
SCSS
$custom: #2a3299;
$custom-light: #746ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3299",
  "rgb": {
    "r": 42,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 235.676,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38344,
    "c": 0.16517,
    "h": 272.3
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#2A3299
secondary
#BCB563
accent
#D548E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3299

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

Preview Lab → · Contrast checker → · Palette generator →

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