#2D207F#2D207F

#2D207F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.151 H 280.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2D207F
RGBrgb(45, 32, 127)
HSLhsl(248, 60%, 31%)
HSVhsv(248, 75%, 50%)
CMYKcmyk(64.6%, 74.8%, 0%, 50.2%)
CIE-LABlab(20.53, 35.10, -51.44)
CIE-LCHlch(20.53, 62.28, 304.30°)
OKLaboklab(33.02% 0.0273 -0.1484)
OKLCHoklch(33.02% 0.151 280.4)
XYZxyz(5.4283, 3.1228, 20.3913)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D207F #727F20
analogous
#20427F #2D207F #5C207F
triadic
#2D207F #7F2D20 #207F2D
tetradic
#2D207F #7F2042 #727F20 #207F5C
square
#2D207F #7F2042 #727F20 #207F5C
split-complementary
#2D207F #7F5C20 #427F20
monochromatic
#0A071D #1C144E #2D207F #3E2CB0 #5B48D1

Accessibility & contrast

On white

12.93
#2D207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D207F
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D207F#FFFFFF#000000##FFFFFF
##2D207F1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d207f;
/* rgb */ color: rgb(45, 32, 127);
/* oklch */ color: oklch(33.0% 0.151 280.4);
Tailwind
colors: {
  custom: {
    50: '#715da5',
    500: '#2d207f',
    950: '#000000',
  },
}
SCSS
$custom: #2d207f;
$custom-light: #715da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d207f",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 248.211,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33015,
    "c": 0.15088,
    "h": 280.4
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#2D207F
secondary
#A3B249
accent
#E345CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D207F

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

Preview Lab → · Contrast checker → · Palette generator →

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