#2A42AF#2A42AF

#2A42AF is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.175 H 268.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2A42AF
RGBrgb(42, 66, 175)
HSLhsl(229, 61%, 43%)
HSVhsv(229, 76%, 69%)
CMYKcmyk(76%, 62.3%, 0%, 31.4%)
CIE-LABlab(32.88, 30.27, -60.65)
CIE-LCHlch(32.88, 67.78, 296.52°)
OKLaboklab(43.31% -0.0051 -0.1753)
OKLCHoklch(43.31% 0.175 268.3)
XYZxyz(10.6382, 7.4827, 41.4328)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42AF #AF972A
analogous
#2A84AF #2A42AF #552AAF
triadic
#2A42AF #AF2A42 #42AF2A
tetradic
#2A42AF #AF2A84 #AF972A #2AAF55
square
#2A42AF #AF2A84 #AF972A #2AAF55
split-complementary
#2A42AF #AF552A #84AF2A
monochromatic
#121D4C #1E2F7E #2A42AF #445ED2 #7588DE

Accessibility & contrast

On white

8.41
#2A42AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A42AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42AF
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42AF#FFFFFF#000000##FFFFFF
##2A42AF1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a42af;
/* rgb */ color: rgb(42, 66, 175);
/* oklch */ color: oklch(43.3% 0.175 268.3);
Tailwind
colors: {
  custom: {
    50: '#7876c8',
    500: '#2a42af',
    950: '#000000',
  },
}
SCSS
$custom: #2a42af;
$custom-light: #7876c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42af",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 229.173,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43311,
    "c": 0.17537,
    "h": 268.3
  },
  "luminance": 0.07484
}

Semantic roles & 50–950 ramp

primary
#2A42AF
secondary
#C6B66F
accent
#C743E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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