#2A239C#2A239C

#2A239C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.185 H 274.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2A239C
RGBrgb(42, 35, 156)
HSLhsl(243, 63%, 37%)
HSVhsv(243, 78%, 61%)
CMYKcmyk(73.1%, 77.6%, 0%, 38.8%)
CIE-LABlab(23.98, 42.65, -63.82)
CIE-LCHlch(23.98, 76.76, 303.76°)
OKLaboklab(36.31% 0.0147 -0.1846)
OKLCHoklch(36.31% 0.185 274.6)
XYZxyz(7.5546, 4.0939, 31.8381)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A239C #959C23
analogous
#23599C #2A239C #66239C
triadic
#2A239C #9C2A23 #239C2A
tetradic
#2A239C #9C2359 #959C23 #239C66
square
#2A239C #9C2359 #959C23 #239C66
split-complementary
#2A239C #9C6623 #599C23
monochromatic
#0F0D38 #1D186A #2A239C #372ECE #665EDB

Accessibility & contrast

On white

11.54
#2A239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A239C
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A239C#FFFFFF#000000##FFFFFF
##2A239C1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a239c;
/* rgb */ color: rgb(42, 35, 156);
/* oklch */ color: oklch(36.3% 0.185 274.6);
Tailwind
colors: {
  custom: {
    50: '#7660ba',
    500: '#2a239c',
    950: '#000000',
  },
}
SCSS
$custom: #2a239c;
$custom-light: #7660ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a239c",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 243.471,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36314,
    "c": 0.18516,
    "h": 274.6
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#2A239C
secondary
#BAC05B
accent
#E641DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A239C

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

Preview Lab → · Contrast checker → · Palette generator →

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