#2D298C#2D298C

#2D298C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.158 H 276.6°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2D298C
RGBrgb(45, 41, 140)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(67.9%, 70.7%, 0%, 45.1%)
CIE-LABlab(23.79, 34.07, -54.25)
CIE-LCHlch(23.79, 64.06, 302.13°)
OKLaboklab(35.74% 0.0182 -0.1566)
OKLCHoklch(35.74% 0.158 276.6)
XYZxyz(6.6072, 4.0366, 25.2368)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D298C #888C29
analogous
#29568C #2D298C #5E298C
triadic
#2D298C #8C2D29 #298C2D
tetradic
#2D298C #8C2956 #888C29 #298C5E
square
#2D298C #8C2956 #888C29 #298C5E
split-complementary
#2D298C #8C5E29 #568C29
monochromatic
#0F0D2D #1E1B5D #2D298C #3C37BB #645FD0

Accessibility & contrast

On white

11.62
#2D298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D298C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D298C#FFFFFF#000000##FFFFFF
##2D298C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d298c;
/* rgb */ color: rgb(45, 41, 140);
/* oklch */ color: oklch(35.7% 0.158 276.6);
Tailwind
colors: {
  custom: {
    50: '#7363af',
    500: '#2d298c',
    950: '#000000',
  },
}
SCSS
$custom: #2d298c;
$custom-light: #7363af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d298c",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 242.424,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3574,
    "c": 0.15766,
    "h": 276.6
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#2D298C
secondary
#B2B65B
accent
#DE4AD8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2D298C

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

Preview Lab → · Contrast checker → · Palette generator →

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