#2B338D#2B338D

#2B338D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.147 H 273.1°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2B338D
RGBrgb(43, 51, 141)
HSLhsl(235, 53%, 36%)
HSVhsv(235, 70%, 55%)
CMYKcmyk(69.5%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.17, 27.69, -50.98)
CIE-LCHlch(26.17, 58.02, 298.50°)
OKLaboklab(37.46% 0.0079 -0.1471)
OKLCHoklch(37.46% 0.147 273.1)
XYZxyz(6.9862, 4.8037, 25.7532)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338D #8D852B
analogous
#2B648D #2B338D #542B8D
triadic
#2B338D #8D2B33 #338D2B
tetradic
#2B338D #8D2B64 #8D852B #2B8D54
square
#2B338D #8D2B64 #8D852B #2B8D54
split-complementary
#2B338D #8D542B #648D2B
monochromatic
#0E112F #1D225E #2B338D #3944BC #636CCF

Accessibility & contrast

On white

10.71
#2B338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2B338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B338D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338D#FFFFFF#000000##FFFFFF
##2B338D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b338d;
/* rgb */ color: rgb(43, 51, 141);
/* oklch */ color: oklch(37.5% 0.147 273.1);
Tailwind
colors: {
  custom: {
    50: '#726aaf',
    500: '#2b338d',
    950: '#000000',
  },
}
SCSS
$custom: #2b338d;
$custom-light: #726aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338d",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 235.102,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37461,
    "c": 0.14728,
    "h": 273.1
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#2B338D
secondary
#B6AE5E
accent
#D14BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B338D

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

Preview Lab → · Contrast checker → · Palette generator →

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