#2D2674#2D2674

#2D2674 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.129 H 280.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2D2674
RGBrgb(45, 38, 116)
HSLhsl(245, 51%, 30%)
HSVhsv(245, 67%, 45%)
CMYKcmyk(61.2%, 67.2%, 0%, 54.5%)
CIE-LABlab(20.85, 27.61, -43.91)
CIE-LCHlch(20.85, 51.87, 302.16°)
OKLaboklab(32.92% 0.0239 -0.1263)
OKLCHoklch(32.92% 0.129 280.7)
XYZxyz(4.9267, 3.2047, 16.8786)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2674 #6D7426
analogous
#264674 #2D2674 #542674
triadic
#2D2674 #742D26 #26742D
tetradic
#2D2674 #742646 #6D7426 #267454
square
#2D2674 #742646 #6D7426 #267454
split-complementary
#2D2674 #745426 #467426
monochromatic
#090818 #1B1746 #2D2674 #3F35A2 #5A4FC5

Accessibility & contrast

On white

12.80
#2D2674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D2674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2674
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2674#FFFFFF#000000##FFFFFF
##2D26741.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#013A49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2674;
/* rgb */ color: rgb(45, 38, 116);
/* oklch */ color: oklch(32.9% 0.129 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e619d',
    500: '#2d2674',
    950: '#000000',
  },
}
SCSS
$custom: #2d2674;
$custom-light: #6e619d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2674",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 116
  },
  "hsl": {
    "h": 245.385,
    "s": 50.649,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.12856,
    "h": 280.7
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#2D2674
secondary
#9FA64F
accent
#DA4ECE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D2674

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

Preview Lab → · Contrast checker → · Palette generator →

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