#2B338C#2B338C

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

Color values

HEX#2B338C
RGBrgb(43, 51, 140)
HSLhsl(235, 53%, 36%)
HSVhsv(235, 69%, 55%)
CMYKcmyk(69.3%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.08, 27.32, -50.50)
CIE-LCHlch(26.08, 57.42, 298.41°)
OKLaboklab(37.37% 0.0079 -0.1457)
OKLCHoklch(37.37% 0.146 273.1)
XYZxyz(6.9121, 4.7741, 25.3631)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338C #8C842B
analogous
#2B638C #2B338C #532B8C
triadic
#2B338C #8C2B33 #338C2B
tetradic
#2B338C #8C2B63 #8C842B #2B8C53
square
#2B338C #8C2B63 #8C842B #2B8C53
split-complementary
#2B338C #8C532B #638C2B
monochromatic
#0E112E #1D225D #2B338C #3944BB #626BCF

Accessibility & contrast

On white

10.74
#2B338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B338C
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338C#FFFFFF#000000##FFFFFF
##2B338C1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b338c;
/* rgb */ color: rgb(43, 51, 140);
/* oklch */ color: oklch(37.4% 0.146 273.1);
Tailwind
colors: {
  custom: {
    50: '#716aae',
    500: '#2b338c',
    950: '#000000',
  },
}
SCSS
$custom: #2b338c;
$custom-light: #716aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338c",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 235.052,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3737,
    "c": 0.14587,
    "h": 273.1
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#2B338C
secondary
#B5AE5E
accent
#D04BDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B338C

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

Preview Lab → · Contrast checker → · Palette generator →

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