#2A2D99#2A2D99

#2A2D99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.171 H 273.3°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2D99
RGBrgb(42, 45, 153)
HSLhsl(238, 57%, 38%)
HSVhsv(238, 73%, 60%)
CMYKcmyk(72.5%, 70.6%, 0%, 40%)
CIE-LABlab(25.77, 35.76, -59.03)
CIE-LCHlch(25.77, 69.02, 301.21°)
OKLaboklab(37.49% 0.0099 -0.1707)
OKLCHoklch(37.49% 0.171 273.3)
XYZxyz(7.6411, 4.6682, 30.6292)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D99 #99962A
analogous
#2A6499 #2A2D99 #5E2A99
triadic
#2A2D99 #992A2D #2D992A
tetradic
#2A2D99 #992A64 #99962A #2A995E
square
#2A2D99 #992A64 #99962A #2A995E
split-complementary
#2A2D99 #995E2A #64992A
monochromatic
#101139 #1D1F69 #2A2D99 #383CC8 #686BD6

Accessibility & contrast

On white

10.86
#2A2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D99
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D99#FFFFFF#000000##FFFFFF
##2A2D991.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2d99;
/* rgb */ color: rgb(42, 45, 153);
/* oklch */ color: oklch(37.5% 0.171 273.3);
Tailwind
colors: {
  custom: {
    50: '#7567b8',
    500: '#2a2d99',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d99;
$custom-light: #7567b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d99",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 238.378,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37494,
    "c": 0.17096,
    "h": 273.3
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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