#2A23A2#2A23A2

#2A23A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.192 H 274.0°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2A23A2
RGBrgb(42, 35, 162)
HSLhsl(243, 64%, 39%)
HSVhsv(243, 78%, 64%)
CMYKcmyk(74.1%, 78.4%, 0%, 36.5%)
CIE-LABlab(24.65, 44.61, -66.37)
CIE-LCHlch(24.65, 79.97, 303.90°)
OKLaboklab(36.98% 0.0134 -0.192)
OKLCHoklch(36.98% 0.192 274)
XYZxyz(8.0753, 4.3021, 34.5802)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A2 #9BA223
analogous
#235BA2 #2A23A2 #6923A2
triadic
#2A23A2 #A22A23 #23A22A
tetradic
#2A23A2 #A2235B #9BA223 #23A269
square
#2A23A2 #A2235B #9BA223 #23A269
split-complementary
#2A23A2 #A26923 #5BA223
monochromatic
#100D3D #1D1870 #2A23A2 #3930D2 #6962DD

Accessibility & contrast

On white

11.29
#2A23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A2
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A2#FFFFFF#000000##FFFFFF
##2A23A21.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0034A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a23a2;
/* rgb */ color: rgb(42, 35, 162);
/* oklch */ color: oklch(37.0% 0.192 274.0);
Tailwind
colors: {
  custom: {
    50: '#7861bf',
    500: '#2a23a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a2;
$custom-light: #7861bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a2",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 243.307,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36979,
    "c": 0.19248,
    "h": 274
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#2A23A2
secondary
#BDC25E
accent
#E740DE
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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