#2D226B#2D226B

#2D226B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.121 H 283.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2D226B
RGBrgb(45, 34, 107)
HSLhsl(249, 52%, 28%)
HSVhsv(249, 68%, 42%)
CMYKcmyk(57.9%, 68.2%, 0%, 58%)
CIE-LABlab(19.07, 27.10, -40.99)
CIE-LCHlch(19.07, 49.14, 303.47°)
OKLaboklab(31.38% 0.0289 -0.1178)
OKLCHoklch(31.38% 0.121 283.8)
XYZxyz(4.3072, 2.7632, 14.2135)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D226B #606B22
analogous
#223C6B #2D226B #51226B
triadic
#2D226B #6B2D22 #226B2D
tetradic
#2D226B #6B223C #606B22 #226B51
square
#2D226B #6B223C #606B22 #226B51
split-complementary
#2D226B #6B5122 #3C6B22
monochromatic
#0A0717 #19133D #2D226B #413199 #5744C4

Accessibility & contrast

On white

13.53
#2D226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D226B
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D226B#FFFFFF#000000##FFFFFF
##2D226B1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#113443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d226b;
/* rgb */ color: rgb(45, 34, 107);
/* oklch */ color: oklch(31.4% 0.121 283.8);
Tailwind
colors: {
  custom: {
    50: '#6d5e96',
    500: '#2d226b',
    950: '#000000',
  },
}
SCSS
$custom: #2d226b;
$custom-light: #6d5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2d226b",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 249.041,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3138,
    "c": 0.12126,
    "h": 283.8
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#2D226B
secondary
#929F4A
accent
#DB4DC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D226B

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

Preview Lab → · Contrast checker → · Palette generator →

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