#2A246A#2A246A

#2A246A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.4% C 0.118 H 281.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2A246A
RGBrgb(42, 36, 106)
HSLhsl(245, 49%, 28%)
HSVhsv(245, 66%, 42%)
CMYKcmyk(60.4%, 66%, 0%, 58.4%)
CIE-LABlab(19.20, 24.85, -40.14)
CIE-LCHlch(19.20, 47.21, 301.76°)
OKLaboklab(31.38% 0.0226 -0.1153)
OKLCHoklch(31.38% 0.118 281.1)
XYZxyz(4.1864, 2.7943, 13.9516)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246A #646A24
analogous
#24416A #2A246A #4D246A
triadic
#2A246A #6A2A24 #246A2A
tetradic
#2A246A #6A2441 #646A24 #246A4D
square
#2A246A #6A2441 #646A24 #246A4D
split-complementary
#2A246A #6A4D24 #416A24
monochromatic
#090817 #18143C #2A246A #3C3498 #5248C1

Accessibility & contrast

On white

13.47
#2A246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A246A
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246A#FFFFFF#000000##FFFFFF
##2A246A1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#063543
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a246a;
/* rgb */ color: rgb(42, 36, 106);
/* oklch */ color: oklch(31.4% 0.118 281.1);
Tailwind
colors: {
  custom: {
    50: '#6b5f95',
    500: '#2a246a',
    950: '#000000',
  },
}
SCSS
$custom: #2a246a;
$custom-light: #6b5f95;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246a",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 245.143,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31379,
    "c": 0.11754,
    "h": 281.1
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#2A246A
secondary
#969D4D
accent
#D94FCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A246A

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

Preview Lab → · Contrast checker → · Palette generator →

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