#2D279E#2D279E

#2D279E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.183 H 275.1°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2D279E
RGBrgb(45, 39, 158)
HSLhsl(243, 60%, 39%)
HSVhsv(243, 75%, 62%)
CMYKcmyk(71.5%, 75.3%, 0%, 38%)
CIE-LABlab(25.19, 41.38, -63.03)
CIE-LCHlch(25.19, 75.40, 303.28°)
OKLaboklab(37.29% 0.0162 -0.1823)
OKLCHoklch(37.29% 0.183 275.1)
XYZxyz(7.9772, 4.4768, 32.7848)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D279E #989E27
analogous
#275C9E #2D279E #68279E
triadic
#2D279E #9E2D27 #279E2D
tetradic
#2D279E #9E275C #989E27 #279E68
square
#2D279E #9E275C #989E27 #279E68
split-complementary
#2D279E #9E6827 #5C9E27
monochromatic
#110F3C #1F1B6D #2D279E #3D35CD #6C66D9

Accessibility & contrast

On white

11.08
#2D279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D279E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D279E#FFFFFF#000000##FFFFFF
##2D279E1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d279e;
/* rgb */ color: rgb(45, 39, 158);
/* oklch */ color: oklch(37.3% 0.183 275.1);
Tailwind
colors: {
  custom: {
    50: '#7863bc',
    500: '#2d279e',
    950: '#000000',
  },
}
SCSS
$custom: #2d279e;
$custom-light: #7863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d279e",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 243.025,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37287,
    "c": 0.18298,
    "h": 275.1
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2D279E
secondary
#BABF62
accent
#E444DC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D279E

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

Preview Lab → · Contrast checker → · Palette generator →

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