#2A239B#2A239B

#2A239B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.184 H 274.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A239B
RGBrgb(42, 35, 155)
HSLhsl(244, 63%, 37%)
HSVhsv(244, 77%, 61%)
CMYKcmyk(72.9%, 77.4%, 0%, 39.2%)
CIE-LABlab(23.87, 42.33, -63.39)
CIE-LCHlch(23.87, 76.22, 303.73°)
OKLaboklab(36.2% 0.015 -0.1833)
OKLCHoklch(36.2% 0.184 274.7)
XYZxyz(7.4703, 4.0601, 31.3940)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A239B #949B23
analogous
#23589B #2A239B #66239B
triadic
#2A239B #9B2A23 #239B2A
tetradic
#2A239B #9B2358 #949B23 #239B66
square
#2A239B #9B2358 #949B23 #239B66
split-complementary
#2A239B #9B6623 #589B23
monochromatic
#0F0C37 #1C1869 #2A239B #382ECD #655EDB

Accessibility & contrast

On white

11.59
#2A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A239B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A239B#FFFFFF#000000##FFFFFF
##2A239B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a239b;
/* rgb */ color: rgb(42, 35, 155);
/* oklch */ color: oklch(36.2% 0.184 274.7);
Tailwind
colors: {
  custom: {
    50: '#7660ba',
    500: '#2a239b',
    950: '#000000',
  },
}
SCSS
$custom: #2a239b;
$custom-light: #7660ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a239b",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 243.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36204,
    "c": 0.18393,
    "h": 274.7
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#2A239B
secondary
#B9BF5A
accent
#E642DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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