#2D229A#2D229A

#2D229A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.183 H 276.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2D229A
RGBrgb(45, 34, 154)
HSLhsl(246, 64%, 37%)
HSVhsv(246, 78%, 60%)
CMYKcmyk(70.8%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.78, 42.83, -62.91)
CIE-LCHlch(23.78, 76.10, 304.25°)
OKLaboklab(36.17% 0.0197 -0.1818)
OKLCHoklch(36.17% 0.183 276.2)
XYZxyz(7.4850, 4.0343, 30.9498)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229A #8F9A22
analogous
#22539A #2D229A #69229A
triadic
#2D229A #9A2D22 #229A2D
tetradic
#2D229A #9A2253 #8F9A22 #229A69
square
#2D229A #9A2253 #8F9A22 #229A69
split-complementary
#2D229A #9A6922 #539A22
monochromatic
#100C36 #1E1768 #2D229A #3C2DCC #675BDB

Accessibility & contrast

On white

11.62
#2D229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D229A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229A#FFFFFF#000000##FFFFFF
##2D229A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d229a;
/* rgb */ color: rgb(45, 34, 154);
/* oklch */ color: oklch(36.2% 0.183 276.2);
Tailwind
colors: {
  custom: {
    50: '#7760b9',
    500: '#2d229a',
    950: '#000000',
  },
}
SCSS
$custom: #2d229a;
$custom-light: #7760b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229a",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 245.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36169,
    "c": 0.18291,
    "h": 276.2
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#2D229A
secondary
#B6BF58
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D229A

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

Preview Lab → · Contrast checker → · Palette generator →

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