#2A246C#2A246C

#2A246C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.120 H 280.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2A246C
RGBrgb(42, 36, 108)
HSLhsl(245, 50%, 28%)
HSVhsv(245, 67%, 42%)
CMYKcmyk(61.1%, 66.7%, 0%, 57.6%)
CIE-LABlab(19.38, 25.56, -41.15)
CIE-LCHlch(19.38, 48.44, 301.85°)
OKLaboklab(31.56% 0.0224 -0.1183)
OKLCHoklch(31.56% 0.12 280.7)
XYZxyz(4.2916, 2.8364, 14.5058)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246C #666C24
analogous
#24426C #2A246C #4E246C
triadic
#2A246C #6C2A24 #246C2A
tetradic
#2A246C #6C2442 #666C24 #246C4E
square
#2A246C #6C2442 #666C24 #246C4E
split-complementary
#2A246C #6C4E24 #426C24
monochromatic
#090817 #18153E #2A246C #3C339A #5248C2

Accessibility & contrast

On white

13.40
#2A246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A246C
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246C#FFFFFF#000000##FFFFFF
##2A246C1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#033644
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a246c;
/* rgb */ color: rgb(42, 36, 108);
/* oklch */ color: oklch(31.6% 0.120 280.7);
Tailwind
colors: {
  custom: {
    50: '#6b5f97',
    500: '#2a246c',
    950: '#000000',
  },
}
SCSS
$custom: #2a246c;
$custom-light: #6b5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246c",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 245,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31563,
    "c": 0.12043,
    "h": 280.7
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#2A246C
secondary
#989F4D
accent
#DA4ECE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A246C

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

Preview Lab → · Contrast checker → · Palette generator →

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