#2B3174#2B3174

#2B3174 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.114 H 275.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2B3174
RGBrgb(43, 49, 116)
HSLhsl(235, 46%, 31%)
HSVhsv(235, 63%, 45%)
CMYKcmyk(62.9%, 57.8%, 0%, 54.5%)
CIE-LABlab(23.57, 19.79, -39.48)
CIE-LCHlch(23.57, 44.16, 296.62°)
OKLaboklab(34.89% 0.0099 -0.1133)
OKLCHoklch(34.89% 0.114 275)
XYZxyz(5.2459, 3.9708, 17.0096)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3174 #746E2B
analogous
#2B5574 #2B3174 #492B74
triadic
#2B3174 #742B31 #31742B
tetradic
#2B3174 #742B55 #746E2B #2B7449
square
#2B3174 #742B55 #746E2B #2B7449
split-complementary
#2B3174 #74492B #55742B
monochromatic
#0A0B1B #1A1E47 #2B3174 #3C44A1 #5861C1

Accessibility & contrast

On white

11.70
#2B3174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B3174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3174
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3174#FFFFFF#000000##FFFFFF
##2B31741.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013B76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b3174;
/* rgb */ color: rgb(43, 49, 116);
/* oklch */ color: oklch(34.9% 0.114 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c699d',
    500: '#2b3174',
    950: '#000000',
  },
}
SCSS
$custom: #2b3174;
$custom-light: #6c699d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3174",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 235.068,
    "s": 45.912,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34892,
    "c": 0.11372,
    "h": 275
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#2B3174
secondary
#A69F55
accent
#CB52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B3174

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

Preview Lab → · Contrast checker → · Palette generator →

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