#2A42A3#2A42A3

#2A42A3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.159 H 268.2°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A42A3
RGBrgb(42, 66, 163)
HSLhsl(228, 59%, 40%)
HSVhsv(228, 74%, 64%)
CMYKcmyk(74.2%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.88, 25.76, -55.10)
CIE-LCHlch(31.88, 60.82, 295.05°)
OKLaboklab(42.26% -0.0051 -0.159)
OKLCHoklch(42.26% 0.159 268.2)
XYZxyz(9.5116, 7.0320, 35.4993)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42A3 #A38B2A
analogous
#2A7EA3 #2A42A3 #4E2AA3
triadic
#2A42A3 #A32A42 #42A32A
tetradic
#2A42A3 #A32A7E #A38B2A #2AA34E
square
#2A42A3 #A32A7E #A38B2A #2AA34E
split-complementary
#2A42A3 #A34E2A #7EA32A
monochromatic
#111B42 #1D2E72 #2A42A3 #3D5ACD #6E83DA

Accessibility & contrast

On white

8.73
#2A42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42A3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42A3#FFFFFF#000000##FFFFFF
##2A42A31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a42a3;
/* rgb */ color: rgb(42, 66, 163);
/* oklch */ color: oklch(42.3% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#7576bf',
    500: '#2a42a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a42a3;
$custom-light: #7576bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42a3",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 228.099,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42256,
    "c": 0.15909,
    "h": 268.2
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#2A42A3
secondary
#C0AF68
accent
#C346E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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