#2A2E9A#2A2E9A

#2A2E9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.171 H 273.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2A2E9A
RGBrgb(42, 46, 154)
HSLhsl(238, 57%, 38%)
HSVhsv(238, 73%, 60%)
CMYKcmyk(72.7%, 70.1%, 0%, 39.6%)
CIE-LABlab(26.09, 35.49, -59.11)
CIE-LCHlch(26.09, 68.94, 300.98°)
OKLaboklab(37.76% 0.0091 -0.1709)
OKLCHoklch(37.76% 0.171 273)
XYZxyz(7.7626, 4.7786, 31.0788)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E9A #9A962A
analogous
#2A669A #2A2E9A #5E2A9A
triadic
#2A2E9A #9A2A2E #2E9A2A
tetradic
#2A2E9A #9A2A66 #9A962A #2A9A5E
square
#2A2E9A #9A2A66 #9A962A #2A9A5E
split-complementary
#2A2E9A #9A5E2A #669A2A
monochromatic
#10113A #1D206A #2A2E9A #383EC9 #686CD6

Accessibility & contrast

On white

10.74
#2A2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E9A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E9A#FFFFFF#000000##FFFFFF
##2A2E9A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2e9a;
/* rgb */ color: rgb(42, 46, 154);
/* oklch */ color: oklch(37.8% 0.171 273.0);
Tailwind
colors: {
  custom: {
    50: '#7567b9',
    500: '#2a2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e9a;
$custom-light: #7567b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e9a",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 237.857,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3776,
    "c": 0.17114,
    "h": 273
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#2A2E9A
secondary
#BCB963
accent
#DB47E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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