#2A42B1#2A42B1

#2A42B1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.178 H 268.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2A42B1
RGBrgb(42, 66, 177)
HSLhsl(229, 62%, 43%)
HSVhsv(229, 76%, 69%)
CMYKcmyk(76.3%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.05, 31.01, -61.56)
CIE-LCHlch(33.05, 68.93, 296.74°)
OKLaboklab(43.49% -0.0051 -0.178)
OKLCHoklch(43.49% 0.178 268.3)
XYZxyz(10.8361, 7.5618, 42.4749)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A42B1 #B1992A
analogous
#2A86B1 #2A42B1 #552AB1
triadic
#2A42B1 #B12A42 #42B12A
tetradic
#2A42B1 #B12A86 #B1992A #2AB155
square
#2A42B1 #B12A86 #B1992A #2AB155
split-complementary
#2A42B1 #B1552A #86B12A
monochromatic
#131D4E #1E3080 #2A42B1 #455ED3 #7789DF

Accessibility & contrast

On white

8.36
#2A42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A42B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A42B1
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A42B1#FFFFFF#000000##FFFFFF
##2A42B11.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a42b1;
/* rgb */ color: rgb(42, 66, 177);
/* oklch */ color: oklch(43.5% 0.178 268.3);
Tailwind
colors: {
  custom: {
    50: '#7976c9',
    500: '#2a42b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a42b1;
$custom-light: #7976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a42b1",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 229.333,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.17804,
    "h": 268.3
  },
  "luminance": 0.07563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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