#2A42B0#2A42B0

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

Color values

HEX#2A42B0
RGBrgb(42, 66, 176)
HSLhsl(229, 61%, 43%)
HSVhsv(229, 76%, 69%)
CMYKcmyk(76.1%, 62.5%, 0%, 31%)
CIE-LABlab(32.97, 30.64, -61.11)
CIE-LCHlch(32.97, 68.36, 296.63°)
OKLaboklab(43.4% -0.0051 -0.1766)
OKLCHoklch(43.4% 0.177 268.3)
XYZxyz(10.7368, 7.5221, 41.9519)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B0 #B0982A
analogous
#2A85B0 #2A42B0 #552AB0
triadic
#2A42B0 #B02A42 #42B02A
tetradic
#2A42B0 #B02A85 #B0982A #2AB055
square
#2A42B0 #B02A85 #B0982A #2AB055
split-complementary
#2A42B0 #B0552A #85B02A
monochromatic
#121D4D #1E2F7F #2A42B0 #455ED3 #7689DE

Accessibility & contrast

On white

8.38
#2A42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A42B0
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B0#FFFFFF#000000##FFFFFF
##2A42B01.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a42b0;
/* rgb */ color: rgb(42, 66, 176);
/* oklch */ color: oklch(43.4% 0.177 268.3);
Tailwind
colors: {
  custom: {
    50: '#7876c9',
    500: '#2a42b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b0;
$custom-light: #7876c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b0",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 229.254,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.17671,
    "h": 268.3
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#2A42B0
secondary
#C6B770
accent
#C843E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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