#2B338B#2B338B

#2B338B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.144 H 273.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2B338B
RGBrgb(43, 51, 139)
HSLhsl(235, 53%, 36%)
HSVhsv(235, 69%, 55%)
CMYKcmyk(69.1%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.99, 26.95, -50.03)
CIE-LCHlch(25.99, 56.82, 298.31°)
OKLaboklab(37.28% 0.0079 -0.1443)
OKLCHoklch(37.28% 0.144 273.1)
XYZxyz(6.8387, 4.7447, 24.9765)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338B #8B832B
analogous
#2B638B #2B338B #532B8B
triadic
#2B338B #8B2B33 #338B2B
tetradic
#2B338B #8B2B63 #8B832B #2B8B53
square
#2B338B #8B2B63 #8B832B #2B8B53
split-complementary
#2B338B #8B532B #638B2B
monochromatic
#0E112E #1D225C #2B338B #3944BA #626BCE

Accessibility & contrast

On white

10.77
#2B338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2B338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B338B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338B#FFFFFF#000000##FFFFFF
##2B338B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b338b;
/* rgb */ color: rgb(43, 51, 139);
/* oklch */ color: oklch(37.3% 0.144 273.1);
Tailwind
colors: {
  custom: {
    50: '#716aae',
    500: '#2b338b',
    950: '#000000',
  },
}
SCSS
$custom: #2b338b;
$custom-light: #716aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338b",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 235,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3728,
    "c": 0.14448,
    "h": 273.1
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#2B338B
secondary
#B5AD5D
accent
#D04CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B338B

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

Preview Lab → · Contrast checker → · Palette generator →

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