#2B479C#2B479C

#2B479C is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.143 H 266.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2B479C
RGBrgb(43, 71, 156)
HSLhsl(225, 57%, 39%)
HSVhsv(225, 72%, 61%)
CMYKcmyk(72.4%, 54.5%, 0%, 38.8%)
CIE-LABlab(32.74, 19.87, -49.47)
CIE-LCHlch(32.74, 53.31, 291.89°)
OKLaboklab(42.75% -0.0086 -0.1424)
OKLCHoklch(42.75% 0.143 266.6)
XYZxyz(9.2482, 7.4194, 32.3907)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B479C #9C802B
analogous
#2B809C #2B479C #482B9C
triadic
#2B479C #9C2B47 #479C2B
tetradic
#2B479C #9C2B80 #9C802B #2B9C48
square
#2B479C #9C2B80 #9C802B #2B9C48
split-complementary
#2B479C #9C482B #809C2B
monochromatic
#111B3C #1E316C #2B479C #3B5EC9 #6B86D6

Accessibility & contrast

On white

8.45
#2B479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2B479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B479C
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B479C#FFFFFF#000000##FFFFFF
##2B479C1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06529F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b479c;
/* rgb */ color: rgb(43, 71, 156);
/* oklch */ color: oklch(42.7% 0.143 266.6);
Tailwind
colors: {
  custom: {
    50: '#7479ba',
    500: '#2b479c',
    950: '#000000',
  },
}
SCSS
$custom: #2b479c;
$custom-light: #7479ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b479c",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 225.133,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42746,
    "c": 0.14263,
    "h": 266.6
  },
  "luminance": 0.0742
}

Semantic roles & 50–950 ramp

primary
#2B479C
secondary
#BDA766
accent
#BA48E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2B479C

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

Preview Lab → · Contrast checker → · Palette generator →

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