#2D226E#2D226E

#2D226E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.125 H 283.2°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2D226E
RGBrgb(45, 34, 110)
HSLhsl(249, 53%, 28%)
HSVhsv(249, 69%, 43%)
CMYKcmyk(59.1%, 69.1%, 0%, 56.9%)
CIE-LABlab(19.34, 28.12, -42.50)
CIE-LCHlch(19.34, 50.96, 303.50°)
OKLaboklab(31.66% 0.0286 -0.1222)
OKLCHoklch(31.66% 0.125 283.2)
XYZxyz(4.4678, 2.8275, 15.0592)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D226E #636E22
analogous
#223D6E #2D226E #53226E
triadic
#2D226E #6E2D22 #226E2D
tetradic
#2D226E #6E223D #636E22 #226E53
square
#2D226E #6E223D #636E22 #226E53
split-complementary
#2D226E #6E5322 #3D6E22
monochromatic
#0A0717 #1A143F #2D226E #40309D #5845C5

Accessibility & contrast

On white

13.41
#2D226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D226E
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D226E#FFFFFF#000000##FFFFFF
##2D226E1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0C3544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d226e;
/* rgb */ color: rgb(45, 34, 110);
/* oklch */ color: oklch(31.7% 0.125 283.2);
Tailwind
colors: {
  custom: {
    50: '#6e5e98',
    500: '#2d226e',
    950: '#000000',
  },
}
SCSS
$custom: #2d226e;
$custom-light: #6e5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d226e",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 248.684,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3166,
    "c": 0.12548,
    "h": 283.2
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#2D226E
secondary
#95A14A
accent
#DC4CC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D226E

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

Preview Lab → · Contrast checker → · Palette generator →

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