#2A2675#2A2675

#2A2675 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.131 H 278.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2A2675
RGBrgb(42, 38, 117)
HSLhsl(243, 51%, 30%)
HSVhsv(243, 68%, 46%)
CMYKcmyk(64.1%, 67.5%, 0%, 54.1%)
CIE-LABlab(20.68, 27.44, -44.83)
CIE-LCHlch(20.68, 52.56, 301.47°)
OKLaboklab(32.77% 0.0196 -0.1291)
OKLCHoklch(32.77% 0.131 278.6)
XYZxyz(4.8578, 3.1625, 17.1806)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2675 #717526
analogous
#264975 #2A2675 #512675
triadic
#2A2675 #752A26 #26752A
tetradic
#2A2675 #752649 #717526 #267551
square
#2A2675 #752649 #717526 #267551
split-complementary
#2A2675 #755126 #497526
monochromatic
#090819 #191747 #2A2675 #3B35A3 #554FC6

Accessibility & contrast

On white

12.86
#2A2675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A2675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2675
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2675#FFFFFF#000000##FFFFFF
##2A26751.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2675;
/* rgb */ color: rgb(42, 38, 117);
/* oklch */ color: oklch(32.8% 0.131 278.6);
Tailwind
colors: {
  custom: {
    50: '#6d619e',
    500: '#2a2675',
    950: '#000000',
  },
}
SCSS
$custom: #2a2675;
$custom-light: #6d619e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2675",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 117
  },
  "hsl": {
    "h": 243.038,
    "s": 50.968,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32766,
    "c": 0.13059,
    "h": 278.6
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#2A2675
secondary
#A3A74F
accent
#DA4DD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2675

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

Preview Lab → · Contrast checker → · Palette generator →

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