#2A23A0#2A23A0

#2A23A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 274.2°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2A23A0
RGBrgb(42, 35, 160)
HSLhsl(243, 64%, 38%)
HSVhsv(243, 78%, 63%)
CMYKcmyk(73.8%, 78.1%, 0%, 37.3%)
CIE-LABlab(24.42, 43.96, -65.53)
CIE-LCHlch(24.42, 78.91, 303.86°)
OKLaboklab(36.76% 0.0138 -0.1895)
OKLCHoklch(36.76% 0.19 274.2)
XYZxyz(7.8989, 4.2316, 33.6514)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A0 #99A023
analogous
#235AA0 #2A23A0 #6823A0
triadic
#2A23A0 #A02A23 #23A02A
tetradic
#2A23A0 #A0235A #99A023 #23A068
square
#2A23A0 #A0235A #99A023 #23A068
split-complementary
#2A23A0 #A06823 #5AA023
monochromatic
#100D3C #1D186E #2A23A0 #382FD1 #6861DC

Accessibility & contrast

On white

11.37
#2A23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A0
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A0#FFFFFF#000000##FFFFFF
##2A23A01.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a23a0;
/* rgb */ color: rgb(42, 35, 160);
/* oklch */ color: oklch(36.8% 0.190 274.2);
Tailwind
colors: {
  custom: {
    50: '#7761bd',
    500: '#2a23a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a0;
$custom-light: #7761bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a0",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 243.36,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.19004,
    "h": 274.2
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#2A23A0
secondary
#BCC15D
accent
#E741DE
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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