#2A2EB3#2A2EB3

#2A2EB3 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.3% C 0.203 H 271.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB3
RGBrgb(42, 46, 179)
HSLhsl(238, 62%, 43%)
HSVhsv(238, 77%, 70%)
CMYKcmyk(76.5%, 74.3%, 0%, 29.8%)
CIE-LABlab(28.64, 44.14, -70.00)
CIE-LCHlch(28.64, 82.76, 302.23°)
OKLaboklab(40.35% 0.0054 -0.2027)
OKLCHoklch(40.35% 0.203 271.5)
XYZxyz(10.0658, 5.6998, 43.2088)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB3 #B3AF2A
analogous
#2A72B3 #2A2EB3 #6A2AB3
triadic
#2A2EB3 #B32A2E #2EB32A
tetradic
#2A2EB3 #B32A72 #B3AF2A #2AB36A
square
#2A2EB3 #B32A72 #B3AF2A #2AB36A
split-complementary
#2A2EB3 #B36A2A #72B32A
monochromatic
#131550 #1E2181 #2A2EB3 #464BD4 #787BDF

Accessibility & contrast

On white

9.81
#2A2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB3
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB3#FFFFFF#000000##FFFFFF
##2A2EB31.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2eb3;
/* rgb */ color: rgb(42, 46, 179);
/* oklch */ color: oklch(40.3% 0.203 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b68cb',
    500: '#2a2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb3;
$custom-light: #7b68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb3",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 238.248,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.20273,
    "h": 271.5
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#2A2EB3
secondary
#C7C572
accent
#E043E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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