#2A207D#2A207D

#2A207D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.149 H 279.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2A207D
RGBrgb(42, 32, 125)
HSLhsl(246, 59%, 31%)
HSVhsv(246, 74%, 49%)
CMYKcmyk(66.4%, 74.4%, 0%, 51%)
CIE-LABlab(20.07, 34.01, -50.95)
CIE-LCHlch(20.07, 61.26, 303.73°)
OKLaboklab(32.56% 0.0233 -0.147)
OKLCHoklch(32.56% 0.149 279)
XYZxyz(5.1718, 3.0055, 19.7056)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A207D #737D20
analogous
#20447D #2A207D #58207D
triadic
#2A207D #7D2A20 #207D2A
tetradic
#2A207D #7D2044 #737D20 #207D58
square
#2A207D #7D2044 #737D20 #207D58
split-complementary
#2A207D #7D5820 #447D20
monochromatic
#09071C #1A144C #2A207D #3A2CAE #5647D0

Accessibility & contrast

On white

13.12
#2A207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A207D
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A207D#FFFFFF#000000##FFFFFF
##2A207D1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a207d;
/* rgb */ color: rgb(42, 32, 125);
/* oklch */ color: oklch(32.6% 0.149 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f5da4',
    500: '#2a207d',
    950: '#000000',
  },
}
SCSS
$custom: #2a207d;
$custom-light: #6f5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a207d",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 246.452,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32558,
    "c": 0.14886,
    "h": 279
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#2A207D
secondary
#A5B049
accent
#E245D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A207D

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

Preview Lab → · Contrast checker → · Palette generator →

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