#2A245D#2A245D

#2A245D is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.2% C 0.098 H 283.6°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2A245D
RGBrgb(42, 36, 93)
HSLhsl(246, 44%, 25%)
HSVhsv(246, 61%, 36%)
CMYKcmyk(54.8%, 61.3%, 0%, 63.5%)
CIE-LABlab(18.12, 20.25, -33.35)
CIE-LCHlch(18.12, 39.01, 301.27°)
OKLaboklab(30.24% 0.0231 -0.0954)
OKLCHoklch(30.24% 0.098 283.6)
XYZxyz(3.5609, 2.5441, 10.6572)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A245D #575D24
analogous
#243A5D #2A245D #46245D
triadic
#2A245D #5D2A24 #245D2A
tetradic
#2A245D #5D243A #575D24 #245D46
square
#2A245D #5D243A #575D24 #245D46
split-complementary
#2A245D #5D4624 #3A5D24
monochromatic
#0A0916 #161331 #2A245D #3E3589 #5246B5

Accessibility & contrast

On white

13.92
#2A245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A245D
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A245D#FFFFFF#000000##FFFFFF
##2A245D1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#16313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a245d;
/* rgb */ color: rgb(42, 36, 93);
/* oklch */ color: oklch(30.2% 0.098 283.6);
Tailwind
colors: {
  custom: {
    50: '#685f8b',
    500: '#2a245d',
    950: '#000000',
  },
}
SCSS
$custom: #2a245d;
$custom-light: #685f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a245d",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 246.316,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30241,
    "c": 0.09814,
    "h": 283.6
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#2A245D
secondary
#89914C
accent
#D454C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A245D

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

Preview Lab → · Contrast checker → · Palette generator →

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