#2A207C#2A207C

#2A207C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.148 H 279.2°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2A207C
RGBrgb(42, 32, 124)
HSLhsl(247, 59%, 31%)
HSVhsv(247, 74%, 49%)
CMYKcmyk(66.1%, 74.2%, 0%, 51.4%)
CIE-LABlab(19.96, 33.67, -50.48)
CIE-LCHlch(19.96, 60.68, 303.71°)
OKLaboklab(32.45% 0.0235 -0.1457)
OKLCHoklch(32.45% 0.148 279.2)
XYZxyz(5.1083, 2.9801, 19.3709)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A207C #727C20
analogous
#20447C #2A207C #58207C
triadic
#2A207C #7C2A20 #207C2A
tetradic
#2A207C #7C2044 #727C20 #207C58
square
#2A207C #7C2044 #727C20 #207C58
split-complementary
#2A207C #7C5820 #447C20
monochromatic
#09071B #1A134B #2A207C #3A2DAD #5647CF

Accessibility & contrast

On white

13.16
#2A207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A207C
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A207C#FFFFFF#000000##FFFFFF
##2A207C1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a207c;
/* rgb */ color: rgb(42, 32, 124);
/* oklch */ color: oklch(32.5% 0.148 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f5da3',
    500: '#2a207c',
    950: '#000000',
  },
}
SCSS
$custom: #2a207c;
$custom-light: #6f5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a207c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 246.522,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.14754,
    "h": 279.2
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#2A207C
secondary
#A4AF49
accent
#E246D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A207C

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

Preview Lab → · Contrast checker → · Palette generator →

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