#2A2D9B#2A2D9B

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

Color values

HEX#2A2D9B
RGBrgb(42, 45, 155)
HSLhsl(238, 57%, 39%)
HSVhsv(238, 73%, 61%)
CMYKcmyk(72.9%, 71%, 0%, 39.2%)
CIE-LABlab(25.97, 36.47, -59.93)
CIE-LCHlch(25.97, 70.15, 301.32°)
OKLaboklab(37.7% 0.0096 -0.1733)
OKLCHoklch(37.7% 0.174 273.2)
XYZxyz(7.8076, 4.7348, 31.5064)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D9B #9B982A
analogous
#2A659B #2A2D9B #5F2A9B
triadic
#2A2D9B #9B2A2D #2D9B2A
tetradic
#2A2D9B #9B2A65 #9B982A #2A9B5F
square
#2A2D9B #9B2A65 #9B982A #2A9B5F
split-complementary
#2A2D9B #9B5F2A #659B2A
monochromatic
#10113B #1D1F6B #2A2D9B #393DC9 #696CD6

Accessibility & contrast

On white

10.78
#2A2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D9B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D9B#FFFFFF#000000##FFFFFF
##2A2D9B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2d9b;
/* rgb */ color: rgb(42, 45, 155);
/* oklch */ color: oklch(37.7% 0.174 273.2);
Tailwind
colors: {
  custom: {
    50: '#7567ba',
    500: '#2a2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d9b;
$custom-light: #7567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d9b",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 238.407,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.17357,
    "h": 273.2
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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