#2B336D#2B336D

#2B336D is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.100 H 274.1°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2B336D
RGBrgb(43, 51, 109)
HSLhsl(233, 43%, 30%)
HSVhsv(233, 61%, 43%)
CMYKcmyk(60.6%, 53.2%, 0%, 57.3%)
CIE-LABlab(23.62, 15.80, -34.92)
CIE-LCHlch(23.62, 38.33, 294.35°)
OKLaboklab(34.76% 0.0072 -0.0998)
OKLCHoklch(34.76% 0.1 274.1)
XYZxyz(4.9395, 3.9850, 14.9739)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B336D #6D652B
analogous
#2B546D #2B336D #442B6D
triadic
#2B336D #6D2B33 #336D2B
tetradic
#2B336D #6D2B54 #6D652B #2B6D44
square
#2B336D #6D2B54 #6D652B #2B6D44
split-complementary
#2B336D #6D442B #546D2B
monochromatic
#090A16 #1A1E41 #2B336D #3C4899 #5662BC

Accessibility & contrast

On white

11.69
#2B336D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B336D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B336D
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B336D#FFFFFF#000000##FFFFFF
##2B336D1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#08366C
Tritanopia (blue-blind)
#01404B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b336d;
/* rgb */ color: rgb(43, 51, 109);
/* oklch */ color: oklch(34.8% 0.100 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a97',
    500: '#2b336d',
    950: '#000000',
  },
}
SCSS
$custom: #2b336d;
$custom-light: #6b6a97;
$custom-dark: #000000;
JSON
{
  "hex": "#2b336d",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 232.727,
    "s": 43.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.1001,
    "h": 274.1
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#2B336D
secondary
#9F9655
accent
#C455D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2B336D

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

Preview Lab → · Contrast checker → · Palette generator →

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