#2D2268#2D2268

#2D2268 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.1% C 0.117 H 284.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2D2268
RGBrgb(45, 34, 104)
HSLhsl(249, 51%, 27%)
HSVhsv(249, 67%, 41%)
CMYKcmyk(56.7%, 67.3%, 0%, 59.2%)
CIE-LABlab(18.81, 26.07, -39.46)
CIE-LCHlch(18.81, 47.30, 303.45°)
OKLaboklab(31.11% 0.0293 -0.1133)
OKLCHoklch(31.11% 0.117 284.5)
XYZxyz(4.1522, 2.7012, 13.3966)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2268 #5D6822
analogous
#223A68 #2D2268 #502268
triadic
#2D2268 #682D22 #22682D
tetradic
#2D2268 #68223A #5D6822 #226850
square
#2D2268 #68223A #5D6822 #226850
split-complementary
#2D2268 #685022 #3A6822
monochromatic
#0A0817 #19133A #2D2268 #413196 #5743C2

Accessibility & contrast

On white

13.63
#2D2268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D2268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2268
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2268#FFFFFF#000000##FFFFFF
##2D22681.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#143341
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d2268;
/* rgb */ color: rgb(45, 34, 104);
/* oklch */ color: oklch(31.1% 0.117 284.5);
Tailwind
colors: {
  custom: {
    50: '#6c5e94',
    500: '#2d2268',
    950: '#000000',
  },
}
SCSS
$custom: #2d2268;
$custom-light: #6c5e94;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2268",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 249.429,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31106,
    "c": 0.117,
    "h": 284.5
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#2D2268
secondary
#8F9C4A
accent
#DA4EC4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D2268

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

Preview Lab → · Contrast checker → · Palette generator →

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