#2B2794#2B2794

#2B2794 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.171 H 275.2°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2B2794
RGBrgb(43, 39, 148)
HSLhsl(242, 58%, 37%)
HSVhsv(242, 74%, 58%)
CMYKcmyk(70.9%, 73.6%, 0%, 42%)
CIE-LABlab(24.01, 37.79, -58.86)
CIE-LCHlch(24.01, 69.94, 302.71°)
OKLaboklab(36.1% 0.0156 -0.1701)
OKLCHoklch(36.1% 0.171 275.2)
XYZxyz(7.0653, 4.1021, 28.4307)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2794 #909427
analogous
#275A94 #2B2794 #622794
triadic
#2B2794 #942B27 #27942B
tetradic
#2B2794 #94275A #909427 #279462
square
#2B2794 #94275A #909427 #279462
split-complementary
#2B2794 #946227 #5A9427
monochromatic
#0F0D33 #1D1A64 #2B2794 #3934C4 #6560D5

Accessibility & contrast

On white

11.53
#2B2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2794
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2794#FFFFFF#000000##FFFFFF
##2B27941.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2794;
/* rgb */ color: rgb(43, 39, 148);
/* oklch */ color: oklch(36.1% 0.171 275.2);
Tailwind
colors: {
  custom: {
    50: '#7462b5',
    500: '#2b2794',
    950: '#000000',
  },
}
SCSS
$custom: #2b2794;
$custom-light: #7462b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2794",
  "rgb": {
    "r": 43,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 242.202,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36097,
    "c": 0.17084,
    "h": 275.2
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#2B2794
secondary
#B7BB5C
accent
#E246DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B2794

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

Preview Lab → · Contrast checker → · Palette generator →

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