#2D279D#2D279D

#2D279D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.182 H 275.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2D279D
RGBrgb(45, 39, 157)
HSLhsl(243, 60%, 38%)
HSVhsv(243, 75%, 62%)
CMYKcmyk(71.3%, 75.2%, 0%, 38.4%)
CIE-LABlab(25.08, 41.04, -62.60)
CIE-LCHlch(25.08, 74.85, 303.25°)
OKLaboklab(37.18% 0.0164 -0.181)
OKLCHoklch(37.18% 0.182 275.2)
XYZxyz(7.8915, 4.4425, 32.3334)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D279D #979D27
analogous
#275C9D #2D279D #68279D
triadic
#2D279D #9D2D27 #279D2D
tetradic
#2D279D #9D275C #979D27 #279D68
square
#2D279D #9D275C #979D27 #279D68
split-complementary
#2D279D #9D6827 #5C9D27
monochromatic
#110F3B #1F1B6C #2D279D #3C35CD #6B66D9

Accessibility & contrast

On white

11.12
#2D279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D279D
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D279D#FFFFFF#000000##FFFFFF
##2D279D1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d279d;
/* rgb */ color: rgb(45, 39, 157);
/* oklch */ color: oklch(37.2% 0.182 275.2);
Tailwind
colors: {
  custom: {
    50: '#7763bb',
    500: '#2d279d',
    950: '#000000',
  },
}
SCSS
$custom: #2d279d;
$custom-light: #7763bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d279d",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 243.051,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.18173,
    "h": 275.2
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#2D279D
secondary
#BABF61
accent
#E344DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D279D

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

Preview Lab → · Contrast checker → · Palette generator →

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