#2A42B3#2A42B3

#2A42B3 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.181 H 268.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2A42B3
RGBrgb(42, 66, 179)
HSLhsl(229, 62%, 43%)
HSVhsv(229, 77%, 70%)
CMYKcmyk(76.5%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.23, 31.75, -62.47)
CIE-LCHlch(33.23, 70.07, 296.95°)
OKLaboklab(43.67% -0.0052 -0.1806)
OKLCHoklch(43.67% 0.181 268.4)
XYZxyz(11.0369, 7.6421, 43.5325)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B3 #B39B2A
analogous
#2A86B3 #2A42B3 #562AB3
triadic
#2A42B3 #B32A42 #42B32A
tetradic
#2A42B3 #B32A86 #B39B2A #2AB356
square
#2A42B3 #B32A86 #B39B2A #2AB356
split-complementary
#2A42B3 #B3562A #86B32A
monochromatic
#131D50 #1E3081 #2A42B3 #465FD4 #788ADF

Accessibility & contrast

On white

8.30
#2A42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2A42B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42B3
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B3#FFFFFF#000000##FFFFFF
##2A42B31.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a42b3;
/* rgb */ color: rgb(42, 66, 179);
/* oklch */ color: oklch(43.7% 0.181 268.4);
Tailwind
colors: {
  custom: {
    50: '#7976cb',
    500: '#2a42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b3;
$custom-light: #7976cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b3",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 229.489,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43673,
    "c": 0.18069,
    "h": 268.4
  },
  "luminance": 0.07643
}

Semantic roles & 50–950 ramp

primary
#2A42B3
secondary
#C7B872
accent
#C943E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2A42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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