#2B338A#2B338A

#2B338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.143 H 273.2°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2B338A
RGBrgb(43, 51, 138)
HSLhsl(235, 52%, 35%)
HSVhsv(235, 69%, 54%)
CMYKcmyk(68.8%, 63%, 0%, 45.9%)
CIE-LABlab(25.91, 26.58, -49.54)
CIE-LCHlch(25.91, 56.22, 298.21°)
OKLaboklab(37.19% 0.008 -0.1428)
OKLCHoklch(37.19% 0.143 273.2)
XYZxyz(6.7660, 4.7156, 24.5935)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338A #8A822B
analogous
#2B638A #2B338A #522B8A
triadic
#2B338A #8A2B33 #338A2B
tetradic
#2B338A #8A2B63 #8A822B #2B8A52
square
#2B338A #8A2B63 #8A822B #2B8A52
split-complementary
#2B338A #8A522B #638A2B
monochromatic
#0E112D #1C225B #2B338A #3A44B9 #616BCE

Accessibility & contrast

On white

10.81
#2B338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B338A
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338A#FFFFFF#000000##FFFFFF
##2B338A1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b338a;
/* rgb */ color: rgb(43, 51, 138);
/* oklch */ color: oklch(37.2% 0.143 273.2);
Tailwind
colors: {
  custom: {
    50: '#716aad',
    500: '#2b338a',
    950: '#000000',
  },
}
SCSS
$custom: #2b338a;
$custom-light: #716aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338a",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 234.947,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.14306,
    "h": 273.2
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B338A

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

Preview Lab → · Contrast checker → · Palette generator →

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