#2D278E#2D278E

#2D278E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.163 H 276.8°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#2D278E
RGBrgb(45, 39, 142)
HSLhsl(243, 57%, 35%)
HSVhsv(243, 73%, 56%)
CMYKcmyk(68.3%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.54, 35.98, -55.90)
CIE-LCHlch(23.54, 66.48, 302.77°)
OKLaboklab(35.62% 0.0193 -0.1614)
OKLCHoklch(35.62% 0.163 276.8)
XYZxyz(6.6886, 3.9613, 25.9981)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D278E #888E27
analogous
#27548E #2D278E #60278E
triadic
#2D278E #8E2D27 #278E2D
tetradic
#2D278E #8E2754 #888E27 #278E60
square
#2D278E #8E2754 #888E27 #278E60
split-complementary
#2D278E #8E6027 #548E27
monochromatic
#0F0D2E #1E1A5E #2D278E #3C34BE #645DD2

Accessibility & contrast

On white

11.72
#2D278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D278E
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D278E#FFFFFF#000000##FFFFFF
##2D278E1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d278e;
/* rgb */ color: rgb(45, 39, 142);
/* oklch */ color: oklch(35.6% 0.163 276.8);
Tailwind
colors: {
  custom: {
    50: '#7462b0',
    500: '#2d278e',
    950: '#000000',
  },
}
SCSS
$custom: #2d278e;
$custom-light: #7462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d278e",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 243.495,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35621,
    "c": 0.16259,
    "h": 276.8
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#2D278E
secondary
#B2B859
accent
#E048D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D278E

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

Preview Lab → · Contrast checker → · Palette generator →

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