#2A2D9C#2A2D9C

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

Color values

HEX#2A2D9C
RGBrgb(42, 45, 156)
HSLhsl(238, 58%, 39%)
HSVhsv(238, 73%, 61%)
CMYKcmyk(73.1%, 71.2%, 0%, 38.8%)
CIE-LABlab(26.06, 36.82, -60.38)
CIE-LCHlch(26.06, 70.72, 301.37°)
OKLaboklab(37.8% 0.0094 -0.1746)
OKLCHoklch(37.8% 0.175 273.1)
XYZxyz(7.8920, 4.7685, 31.9505)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D9C #9C992A
analogous
#2A669C #2A2D9C #602A9C
triadic
#2A2D9C #9C2A2D #2D9C2A
tetradic
#2A2D9C #9C2A66 #9C992A #2A9C60
square
#2A2D9C #9C2A66 #9C992A #2A9C60
split-complementary
#2A2D9C #9C602A #669C2A
monochromatic
#10113C #1D1F6C #2A2D9C #393DCA #6A6CD7

Accessibility & contrast

On white

10.75
#2A2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D9C
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D9C#FFFFFF#000000##FFFFFF
##2A2D9C1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2d9c;
/* rgb */ color: rgb(42, 45, 156);
/* oklch */ color: oklch(37.8% 0.175 273.1);
Tailwind
colors: {
  custom: {
    50: '#7567ba',
    500: '#2a2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d9c;
$custom-light: #7567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d9c",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 238.421,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37798,
    "c": 0.17486,
    "h": 273.1
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#2A2D9C
secondary
#BDBB65
accent
#DD47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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