#2B279E#2B279E

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

Color values

HEX#2B279E
RGBrgb(43, 39, 158)
HSLhsl(242, 60%, 39%)
HSVhsv(242, 75%, 62%)
CMYKcmyk(72.8%, 75.3%, 0%, 38%)
CIE-LABlab(25.05, 41.17, -63.26)
CIE-LCHlch(25.05, 75.48, 303.06°)
OKLaboklab(37.15% 0.0136 -0.183)
OKLCHoklch(37.15% 0.183 274.3)
XYZxyz(7.8913, 4.4325, 32.7808)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B279E #9A9E27
analogous
#275E9E #2B279E #66279E
triadic
#2B279E #9E2B27 #279E2B
tetradic
#2B279E #9E275E #9A9E27 #279E66
square
#2B279E #9E275E #9A9E27 #279E66
split-complementary
#2B279E #9E6627 #5E9E27
monochromatic
#100F3C #1E1B6D #2B279E #3A35CD #6A66D9

Accessibility & contrast

On white

11.13
#2B279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B279E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B279E#FFFFFF#000000##FFFFFF
##2B279E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b279e;
/* rgb */ color: rgb(43, 39, 158);
/* oklch */ color: oklch(37.2% 0.183 274.3);
Tailwind
colors: {
  custom: {
    50: '#7763bc',
    500: '#2b279e',
    950: '#000000',
  },
}
SCSS
$custom: #2b279e;
$custom-light: #7763bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b279e",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 242.017,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37154,
    "c": 0.18349,
    "h": 274.3
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#2B279E
secondary
#BCBF62
accent
#E444DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2B279E

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

Preview Lab → · Contrast checker → · Palette generator →

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