#2A207E#2A207E

#2A207E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.150 H 278.8°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2A207E
RGBrgb(42, 32, 126)
HSLhsl(246, 59%, 31%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(66.7%, 74.6%, 0%, 50.6%)
CIE-LABlab(20.17, 34.35, -51.41)
CIE-LCHlch(20.17, 61.83, 303.75°)
OKLaboklab(32.66% 0.0231 -0.1484)
OKLCHoklch(32.66% 0.15 278.8)
XYZxyz(5.2360, 3.0312, 20.0438)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A207E #747E20
analogous
#20457E #2A207E #59207E
triadic
#2A207E #7E2A20 #207E2A
tetradic
#2A207E #7E2045 #747E20 #207E59
square
#2A207E #7E2045 #747E20 #207E59
split-complementary
#2A207E #7E5920 #457E20
monochromatic
#09071C #1A144D #2A207E #3A2CAF #5648D0

Accessibility & contrast

On white

13.07
#2A207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A207E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A207E#FFFFFF#000000##FFFFFF
##2A207E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a207e;
/* rgb */ color: rgb(42, 32, 126);
/* oklch */ color: oklch(32.7% 0.150 278.8);
Tailwind
colors: {
  custom: {
    50: '#705da4',
    500: '#2a207e',
    950: '#000000',
  },
}
SCSS
$custom: #2a207e;
$custom-light: #705da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a207e",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 246.383,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32662,
    "c": 0.15019,
    "h": 278.8
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#2A207E
secondary
#A6B149
accent
#E345D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A207E

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

Preview Lab → · Contrast checker → · Palette generator →

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