#2A23B1#2A23B1

#2A23B1 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.7% C 0.210 H 272.7°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2A23B1
RGBrgb(42, 35, 177)
HSLhsl(243, 67%, 42%)
HSVhsv(243, 80%, 69%)
CMYKcmyk(76.3%, 80.2%, 0%, 30.6%)
CIE-LABlab(26.35, 49.39, -72.59)
CIE-LCHlch(26.35, 87.80, 304.23°)
OKLaboklab(38.67% 0.0099 -0.2101)
OKLCHoklch(38.67% 0.21 272.7)
XYZxyz(9.4890, 4.8676, 42.0259)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A23B1 #AAB123
analogous
#2363B1 #2A23B1 #7123B1
triadic
#2A23B1 #B12A23 #23B12A
tetradic
#2A23B1 #B12363 #AAB123 #23B171
square
#2A23B1 #B12363 #AAB123 #23B171
split-complementary
#2A23B1 #B17123 #63B123
monochromatic
#120F4B #1E197E #2A23B1 #4139D8 #726CE2

Accessibility & contrast

On white

10.64
#2A23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A23B1
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A23B1#FFFFFF#000000##FFFFFF
##2A23B11.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B5
Deuteranopia (green-blind)
#0037AF
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a23b1;
/* rgb */ color: rgb(42, 35, 177);
/* oklch */ color: oklch(38.7% 0.210 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b62ca',
    500: '#2a23b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a23b1;
$custom-light: #7b62ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a23b1",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 242.958,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38672,
    "c": 0.21029,
    "h": 272.7
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#2A23B1
secondary
#C3C868
accent
#EA3EE1
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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