#2D229C#2D229C

#2D229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.185 H 276.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2D229C
RGBrgb(45, 34, 156)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 61%)
CMYKcmyk(71.2%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.00, 43.48, -63.77)
CIE-LCHlch(24.00, 77.18, 304.28°)
OKLaboklab(36.39% 0.0192 -0.1844)
OKLCHoklch(36.39% 0.185 276)
XYZxyz(7.6530, 4.1015, 31.8344)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229C #919C22
analogous
#22549C #2D229C #6A229C
triadic
#2D229C #9C2D22 #229C2D
tetradic
#2D229C #9C2254 #919C22 #229C6A
square
#2D229C #9C2254 #919C22 #229C6A
split-complementary
#2D229C #9C6A22 #549C22
monochromatic
#100C38 #1F176A #2D229C #3B2DCE #685DDC

Accessibility & contrast

On white

11.54
#2D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D229C
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229C#FFFFFF#000000##FFFFFF
##2D229C1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d229c;
/* rgb */ color: rgb(45, 34, 156);
/* oklch */ color: oklch(36.4% 0.185 276.0);
Tailwind
colors: {
  custom: {
    50: '#7860ba',
    500: '#2d229c',
    950: '#000000',
  },
}
SCSS
$custom: #2d229c;
$custom-light: #7860ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229c",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 245.41,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36388,
    "c": 0.18535,
    "h": 276
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#2D229C
secondary
#B7C05A
accent
#E741D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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