#2A297E#2A297E

#2A297E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.139 H 276.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2A297E
RGBrgb(42, 41, 126)
HSLhsl(241, 51%, 33%)
HSVhsv(241, 67%, 49%)
CMYKcmyk(66.7%, 67.5%, 0%, 50.6%)
CIE-LABlab(22.25, 28.69, -48.01)
CIE-LCHlch(22.25, 55.93, 300.86°)
OKLaboklab(34.16% 0.016 -0.1384)
OKLCHoklch(34.16% 0.139 276.6)
XYZxyz(5.5125, 3.5840, 20.1359)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A297E #7D7E29
analogous
#29527E #2A297E #54297E
triadic
#2A297E #7E2A29 #297E2A
tetradic
#2A297E #7E2952 #7D7E29 #297E54
square
#2A297E #7E2952 #7D7E29 #297E54
split-complementary
#2A297E #7E5429 #527E29
monochromatic
#0B0B22 #1B1A50 #2A297E #3938AC #5A59C9

Accessibility & contrast

On white

12.23
#2A297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A297E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A297E#FFFFFF#000000##FFFFFF
##2A297E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a297e;
/* rgb */ color: rgb(42, 41, 126);
/* oklch */ color: oklch(34.2% 0.139 276.6);
Tailwind
colors: {
  custom: {
    50: '#6f63a4',
    500: '#2a297e',
    950: '#000000',
  },
}
SCSS
$custom: #2a297e;
$custom-light: #6f63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a297e",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 240.706,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.13934,
    "h": 276.6
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#2A297E
secondary
#ADAE55
accent
#DA4DD9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A297E

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

Preview Lab → · Contrast checker → · Palette generator →

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