#2A2DAF#2A2DAF

#2A2DAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.199 H 271.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2A2DAF
RGBrgb(42, 45, 175)
HSLhsl(239, 61%, 43%)
HSVhsv(239, 76%, 69%)
CMYKcmyk(76%, 74.3%, 0%, 31.4%)
CIE-LABlab(28.02, 43.36, -68.65)
CIE-LCHlch(28.02, 81.20, 302.28°)
OKLaboklab(39.78% 0.0065 -0.1987)
OKLCHoklch(39.78% 0.199 271.9)
XYZxyz(9.6285, 5.4631, 41.0962)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2DAF #AFAC2A
analogous
#2A6FAF #2A2DAF #6A2AAF
triadic
#2A2DAF #AF2A2D #2DAF2A
tetradic
#2A2DAF #AF2A6F #AFAC2A #2AAF6A
square
#2A2DAF #AF2A6F #AFAC2A #2AAF6A
split-complementary
#2A2DAF #AF6A2A #6FAF2A
monochromatic
#12144C #1E207E #2A2DAF #4447D2 #7578DE

Accessibility & contrast

On white

10.03
#2A2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2DAF
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2DAF#FFFFFF#000000##FFFFFF
##2A2DAF1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a2daf;
/* rgb */ color: rgb(42, 45, 175);
/* oklch */ color: oklch(39.8% 0.199 271.9);
Tailwind
colors: {
  custom: {
    50: '#7a67c8',
    500: '#2a2daf',
    950: '#000000',
  },
}
SCSS
$custom: #2a2daf;
$custom-light: #7a67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2daf",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 238.647,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39777,
    "c": 0.19882,
    "h": 271.9
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#2A2DAF
secondary
#C6C46F
accent
#E143E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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