#2A246B#2A246B

#2A246B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.5% C 0.119 H 280.9°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2A246B
RGBrgb(42, 36, 107)
HSLhsl(245, 50%, 28%)
HSVhsv(245, 66%, 42%)
CMYKcmyk(60.7%, 66.4%, 0%, 58%)
CIE-LABlab(19.29, 25.21, -40.65)
CIE-LCHlch(19.29, 47.83, 301.81°)
OKLaboklab(31.47% 0.0225 -0.1168)
OKLCHoklch(31.47% 0.119 280.9)
XYZxyz(4.2387, 2.8152, 14.2271)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246B #656B24
analogous
#24426B #2A246B #4D246B
triadic
#2A246B #6B2A24 #246B2A
tetradic
#2A246B #6B2442 #656B24 #246B4D
square
#2A246B #6B2442 #656B24 #246B4D
split-complementary
#2A246B #6B4D24 #426B24
monochromatic
#090817 #18153D #2A246B #3C3399 #5248C1

Accessibility & contrast

On white

13.43
#2A246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A246B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246B#FFFFFF#000000##FFFFFF
##2A246B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#053644
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a246b;
/* rgb */ color: rgb(42, 36, 107);
/* oklch */ color: oklch(31.5% 0.119 280.9);
Tailwind
colors: {
  custom: {
    50: '#6b5f96',
    500: '#2a246b',
    950: '#000000',
  },
}
SCSS
$custom: #2a246b;
$custom-light: #6b5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246b",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 245.07,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31471,
    "c": 0.11898,
    "h": 280.9
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2A246B
secondary
#979E4D
accent
#D94FCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A246B

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

Preview Lab → · Contrast checker → · Palette generator →

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