#2D229D#2D229D

#2D229D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.187 H 275.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2D229D
RGBrgb(45, 34, 157)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 62%)
CMYKcmyk(71.3%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.11, 43.80, -64.20)
CIE-LCHlch(24.11, 77.72, 304.30°)
OKLaboklab(36.5% 0.019 -0.1856)
OKLCHoklch(36.5% 0.187 275.8)
XYZxyz(7.7380, 4.1355, 32.2822)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229D #929D22
analogous
#22549D #2D229D #6B229D
triadic
#2D229D #9D2D22 #229D2D
tetradic
#2D229D #9D2254 #929D22 #229D6B
square
#2D229D #9D2254 #929D22 #229D6B
split-complementary
#2D229D #9D6B22 #549D22
monochromatic
#100C38 #1F176B #2D229D #3B2DCF #695DDC

Accessibility & contrast

On white

11.49
#2D229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D229D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229D#FFFFFF#000000##FFFFFF
##2D229D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d229d;
/* rgb */ color: rgb(45, 34, 157);
/* oklch */ color: oklch(36.5% 0.187 275.8);
Tailwind
colors: {
  custom: {
    50: '#7860bb',
    500: '#2d229d',
    950: '#000000',
  },
}
SCSS
$custom: #2d229d;
$custom-light: #7860bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229d",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 245.366,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36498,
    "c": 0.18657,
    "h": 275.8
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#2D229D
secondary
#B7C15A
accent
#E740D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D229D

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

Preview Lab → · Contrast checker → · Palette generator →

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