#2D229B#2D229B

#2D229B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.184 H 276.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2D229B
RGBrgb(45, 34, 155)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 61%)
CMYKcmyk(71%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.89, 43.15, -63.34)
CIE-LCHlch(23.89, 76.64, 304.27°)
OKLaboklab(36.28% 0.0195 -0.1831)
OKLCHoklch(36.28% 0.184 276.1)
XYZxyz(7.5687, 4.0678, 31.3903)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229B #909B22
analogous
#22539B #2D229B #6A229B
triadic
#2D229B #9B2D22 #229B2D
tetradic
#2D229B #9B2253 #909B22 #229B6A
square
#2D229B #9B2253 #909B22 #229B6A
split-complementary
#2D229B #9B6A22 #539B22
monochromatic
#100C37 #1E1769 #2D229B #3C2DCD #685CDB

Accessibility & contrast

On white

11.58
#2D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D229B
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229B#FFFFFF#000000##FFFFFF
##2D229B1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d229b;
/* rgb */ color: rgb(45, 34, 155);
/* oklch */ color: oklch(36.3% 0.184 276.1);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2d229b',
    950: '#000000',
  },
}
SCSS
$custom: #2d229b;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229b",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 245.455,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36278,
    "c": 0.18413,
    "h": 276.1
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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