#2D229E#2D229E

#2D229E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.188 H 275.7°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2D229E
RGBrgb(45, 34, 158)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 78%, 62%)
CMYKcmyk(71.5%, 78.5%, 0%, 38%)
CIE-LABlab(24.23, 44.12, -64.63)
CIE-LCHlch(24.23, 78.25, 304.32°)
OKLaboklab(36.61% 0.0187 -0.1868)
OKLCHoklch(36.61% 0.188 275.7)
XYZxyz(7.8237, 4.1698, 32.7337)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D229E #939E22
analogous
#22559E #2D229E #6B229E
triadic
#2D229E #9E2D22 #229E2D
tetradic
#2D229E #9E2255 #939E22 #229E6B
square
#2D229E #9E2255 #939E22 #229E6B
split-complementary
#2D229E #9E6B22 #559E22
monochromatic
#100C39 #1F176C #2D229E #3B2DD0 #695EDC

Accessibility & contrast

On white

11.45
#2D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D229E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D229E#FFFFFF#000000##FFFFFF
##2D229E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d229e;
/* rgb */ color: rgb(45, 34, 158);
/* oklch */ color: oklch(36.6% 0.188 275.7);
Tailwind
colors: {
  custom: {
    50: '#7860bc',
    500: '#2d229e',
    950: '#000000',
  },
}
SCSS
$custom: #2d229e;
$custom-light: #7860bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d229e",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 245.323,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.18778,
    "h": 275.7
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#2D229E
secondary
#B8C15B
accent
#E840D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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