#2A246D#2A246D

#2A246D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.122 H 280.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2A246D
RGBrgb(42, 36, 109)
HSLhsl(245, 50%, 28%)
HSVhsv(245, 67%, 43%)
CMYKcmyk(61.5%, 67%, 0%, 57.3%)
CIE-LABlab(19.47, 25.92, -41.66)
CIE-LCHlch(19.47, 49.06, 301.89°)
OKLaboklab(31.66% 0.0223 -0.1198)
OKLCHoklch(31.66% 0.122 280.5)
XYZxyz(4.3452, 2.8578, 14.7877)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A246D #676D24
analogous
#24426D #2A246D #4E246D
triadic
#2A246D #6D2A24 #246D2A
tetradic
#2A246D #6D2442 #676D24 #246D4E
square
#2A246D #6D2442 #676D24 #246D4E
split-complementary
#2A246D #6D4E24 #426D24
monochromatic
#090817 #18153F #2A246D #3C339B #5349C3

Accessibility & contrast

On white

13.36
#2A246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A246D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A246D#FFFFFF#000000##FFFFFF
##2A246D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#013645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a246d;
/* rgb */ color: rgb(42, 36, 109);
/* oklch */ color: oklch(31.7% 0.122 280.5);
Tailwind
colors: {
  custom: {
    50: '#6c5f98',
    500: '#2a246d',
    950: '#000000',
  },
}
SCSS
$custom: #2a246d;
$custom-light: #6c5f98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a246d",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 244.932,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31655,
    "c": 0.12187,
    "h": 280.5
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#2A246D
secondary
#99A04D
accent
#DA4ECE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A246D

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

Preview Lab → · Contrast checker → · Palette generator →

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