#2A23A7#2A23A7

#2A23A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.198 H 273.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2A23A7
RGBrgb(42, 35, 167)
HSLhsl(243, 65%, 40%)
HSVhsv(243, 79%, 65%)
CMYKcmyk(74.9%, 79%, 0%, 34.5%)
CIE-LABlab(25.21, 46.22, -68.47)
CIE-LCHlch(25.21, 82.61, 304.02°)
OKLaboklab(37.54% 0.0122 -0.1981)
OKLCHoklch(37.54% 0.198 273.5)
XYZxyz(8.5286, 4.4834, 36.9676)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23A7 #A0A723
analogous
#235EA7 #2A23A7 #6C23A7
triadic
#2A23A7 #A72A23 #23A72A
tetradic
#2A23A7 #A7235E #A0A723 #23A76C
square
#2A23A7 #A7235E #A0A723 #23A76C
split-complementary
#2A23A7 #A76C23 #5EA723
monochromatic
#110E42 #1D1874 #2A23A7 #3C33D4 #6C66DF

Accessibility & contrast

On white

11.07
#2A23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23A7
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23A7#FFFFFF#000000##FFFFFF
##2A23A71.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a23a7;
/* rgb */ color: rgb(42, 35, 167);
/* oklch */ color: oklch(37.5% 0.198 273.5);
Tailwind
colors: {
  custom: {
    50: '#7961c2',
    500: '#2a23a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a23a7;
$custom-light: #7961c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23a7",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 243.182,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37539,
    "c": 0.19849,
    "h": 273.5
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#2A23A7
secondary
#BFC461
accent
#E83FDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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