#2D279B#2D279B

#2D279B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.179 H 275.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2D279B
RGBrgb(45, 39, 155)
HSLhsl(243, 60%, 38%)
HSVhsv(243, 75%, 61%)
CMYKcmyk(71%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.87, 40.38, -61.72)
CIE-LCHlch(24.87, 73.76, 303.19°)
OKLaboklab(36.97% 0.0168 -0.1784)
OKLCHoklch(36.97% 0.179 275.4)
XYZxyz(7.7222, 4.3748, 31.4414)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D279B #959B27
analogous
#275B9B #2D279B #67279B
triadic
#2D279B #9B2D27 #279B2D
tetradic
#2D279B #9B275B #959B27 #279B67
square
#2D279B #9B275B #959B27 #279B67
split-complementary
#2D279B #9B6727 #5B9B27
monochromatic
#110E39 #1F1B6A #2D279B #3B33CC #6A64D8

Accessibility & contrast

On white

11.20
#2D279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D279B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D279B#FFFFFF#000000##FFFFFF
##2D279B1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d279b;
/* rgb */ color: rgb(45, 39, 155);
/* oklch */ color: oklch(37.0% 0.179 275.4);
Tailwind
colors: {
  custom: {
    50: '#7763ba',
    500: '#2d279b',
    950: '#000000',
  },
}
SCSS
$custom: #2d279b;
$custom-light: #7763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d279b",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 243.103,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36969,
    "c": 0.17923,
    "h": 275.4
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#2D279B
secondary
#B9BE60
accent
#E345DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D279B

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

Preview Lab → · Contrast checker → · Palette generator →

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