#2D244B#2D244B

#2D244B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.069 H 292.2°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#2D244B
RGBrgb(45, 36, 75)
HSLhsl(254, 35%, 22%)
HSVhsv(254, 52%, 29%)
CMYKcmyk(40%, 52%, 0%, 70.6%)
CIE-LABlab(17.12, 14.95, -22.82)
CIE-LCHlch(17.12, 27.28, 303.24°)
OKLaboklab(29.15% 0.0262 -0.0644)
OKLCHoklch(29.15% 0.069 292.2)
XYZxyz(2.9827, 2.3276, 6.9474)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D244B #424B24
analogous
#242F4B #2D244B #41244B
triadic
#2D244B #4B2D24 #244B2D
tetradic
#2D244B #4B242F #424B24 #244B41
square
#2D244B #4B242F #424B24 #244B41
split-complementary
#2D244B #4B4124 #2F4B24
monochromatic
#0C0A15 #141022 #2D244B #463874 #5F4C9E

Accessibility & contrast

On white

14.33
#2D244B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D244B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D244B
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D244B#FFFFFF#000000##FFFFFF
##2D244B1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4C
Deuteranopia (green-blind)
#17294A
Tritanopia (blue-blind)
#262C33
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d244b;
/* rgb */ color: rgb(45, 36, 75);
/* oklch */ color: oklch(29.2% 0.069 292.2);
Tailwind
colors: {
  custom: {
    50: '#685e7d',
    500: '#2d244b',
    950: '#000000',
  },
}
SCSS
$custom: #2d244b;
$custom-light: #685e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d244b",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 75
  },
  "hsl": {
    "h": 253.846,
    "s": 35.135,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29155,
    "c": 0.06949,
    "h": 292.2
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#2D244B
secondary
#737E4C
accent
#CB5DB2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2D244B

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

Preview Lab → · Contrast checker → · Palette generator →

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