#2A2E99#2A2E99

#2A2E99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.170 H 273.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2A2E99
RGBrgb(42, 46, 153)
HSLhsl(238, 57%, 38%)
HSVhsv(238, 73%, 60%)
CMYKcmyk(72.5%, 69.9%, 0%, 40%)
CIE-LABlab(26.00, 35.14, -58.66)
CIE-LCHlch(26.00, 68.38, 300.92°)
OKLaboklab(37.66% 0.0092 -0.1696)
OKLCHoklch(37.66% 0.17 273.1)
XYZxyz(7.6797, 4.7454, 30.6420)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E99 #99952A
analogous
#2A6599 #2A2E99 #5D2A99
triadic
#2A2E99 #992A2E #2E992A
tetradic
#2A2E99 #992A65 #99952A #2A995D
square
#2A2E99 #992A65 #99952A #2A995D
split-complementary
#2A2E99 #995D2A #65992A
monochromatic
#101139 #1D2069 #2A2E99 #383DC8 #686CD6

Accessibility & contrast

On white

10.77
#2A2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E99
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E99#FFFFFF#000000##FFFFFF
##2A2E991.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2e99;
/* rgb */ color: rgb(42, 46, 153);
/* oklch */ color: oklch(37.7% 0.170 273.1);
Tailwind
colors: {
  custom: {
    50: '#7567b8',
    500: '#2a2e99',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e99;
$custom-light: #7567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e99",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 237.838,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3766,
    "c": 0.16983,
    "h": 273.1
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#2A2E99
secondary
#BCB963
accent
#DB48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2A2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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