#2A2FB6#2A2FB6

#2A2FB6 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.205 H 271.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB6
RGBrgb(42, 47, 182)
HSLhsl(238, 63%, 44%)
HSVhsv(238, 77%, 71%)
CMYKcmyk(76.9%, 74.2%, 0%, 28.6%)
CIE-LABlab(29.16, 44.57, -70.93)
CIE-LCHlch(29.16, 83.77, 302.15°)
OKLaboklab(40.81% 0.0045 -0.2054)
OKLCHoklch(40.81% 0.205 271.2)
XYZxyz(10.4120, 5.9015, 44.8373)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB6 #B6B12A
analogous
#2A75B6 #2A2FB6 #6B2AB6
triadic
#2A2FB6 #B62A2F #2FB62A
tetradic
#2A2FB6 #B62A75 #B6B12A #2AB66B
square
#2A2FB6 #B62A75 #B6B12A #2AB66B
split-complementary
#2A2FB6 #B66B2A #75B62A
monochromatic
#131553 #1F2284 #2A2FB6 #484DD5 #7A7EE0

Accessibility & contrast

On white

9.63
#2A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB6
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB6#FFFFFF#000000##FFFFFF
##2A2FB61.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#003EB4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a2fb6;
/* rgb */ color: rgb(42, 47, 182);
/* oklch */ color: oklch(40.8% 0.205 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b69cd',
    500: '#2a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb6;
$custom-light: #7b69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb6",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 237.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40812,
    "c": 0.20541,
    "h": 271.2
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#2A2FB6
secondary
#C8C573
accent
#E042E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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