#2A297D#2A297D

#2A297D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.138 H 276.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2A297D
RGBrgb(42, 41, 125)
HSLhsl(241, 51%, 33%)
HSVhsv(241, 67%, 49%)
CMYKcmyk(66.4%, 67.2%, 0%, 51%)
CIE-LABlab(22.15, 28.33, -47.52)
CIE-LCHlch(22.15, 55.33, 300.80°)
OKLaboklab(34.06% 0.0161 -0.137)
OKLCHoklch(34.06% 0.138 276.7)
XYZxyz(5.4482, 3.5583, 19.7978)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A297D #7C7D29
analogous
#29527D #2A297D #54297D
triadic
#2A297D #7D2A29 #297D2A
tetradic
#2A297D #7D2952 #7C7D29 #297D54
square
#2A297D #7D2952 #7C7D29 #297D54
split-complementary
#2A297D #7D5429 #527D29
monochromatic
#0B0B21 #1B1A4F #2A297D #3938AB #5958C8

Accessibility & contrast

On white

12.27
#2A297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A297D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A297D#FFFFFF#000000##FFFFFF
##2A297D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a297d;
/* rgb */ color: rgb(42, 41, 125);
/* oklch */ color: oklch(34.1% 0.138 276.7);
Tailwind
colors: {
  custom: {
    50: '#6f63a3',
    500: '#2a297d',
    950: '#000000',
  },
}
SCSS
$custom: #2a297d;
$custom-light: #6f63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a297d",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 240.714,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.13795,
    "h": 276.7
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#2A297D
secondary
#ADAE54
accent
#DA4ED8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A297D

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

Preview Lab → · Contrast checker → · Palette generator →

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