#2A245C#2A245C

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

Color values

HEX#2A245C
RGBrgb(42, 36, 92)
HSLhsl(246, 44%, 25%)
HSVhsv(246, 61%, 36%)
CMYKcmyk(54.3%, 60.9%, 0%, 63.9%)
CIE-LABlab(18.04, 19.90, -32.81)
CIE-LCHlch(18.04, 38.37, 301.23°)
OKLaboklab(30.16% 0.0231 -0.0938)
OKLCHoklch(30.16% 0.097 283.8)
XYZxyz(3.5169, 2.5265, 10.4255)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A245C #565C24
analogous
#243A5C #2A245C #46245C
triadic
#2A245C #5C2A24 #245C2A
tetradic
#2A245C #5C243A #565C24 #245C46
square
#2A245C #5C243A #565C24 #245C46
split-complementary
#2A245C #5C4624 #3A5C24
monochromatic
#0A0916 #161330 #2A245C #3E3588 #5246B4

Accessibility & contrast

On white

13.95
#2A245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A245C
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A245C#FFFFFF#000000##FFFFFF
##2A245C1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#17313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a245c;
/* rgb */ color: rgb(42, 36, 92);
/* oklch */ color: oklch(30.2% 0.097 283.8);
Tailwind
colors: {
  custom: {
    50: '#685f8b',
    500: '#2a245c',
    950: '#000000',
  },
}
SCSS
$custom: #2a245c;
$custom-light: #685f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a245c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 246.429,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30158,
    "c": 0.0966,
    "h": 283.8
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#2A245C
secondary
#88904C
accent
#D354C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A245C

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

Preview Lab → · Contrast checker → · Palette generator →

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