#2B336F#2B336F

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

Color values

HEX#2B336F
RGBrgb(43, 51, 111)
HSLhsl(233, 44%, 30%)
HSVhsv(233, 61%, 44%)
CMYKcmyk(61.3%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.77, 16.55, -35.97)
CIE-LCHlch(23.77, 39.60, 294.70°)
OKLaboklab(34.92% 0.0073 -0.1029)
OKLCHoklch(34.92% 0.103 274.1)
XYZxyz(5.0484, 4.0286, 15.5474)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B336F #6F672B
analogous
#2B556F #2B336F #452B6F
triadic
#2B336F #6F2B33 #336F2B
tetradic
#2B336F #6F2B55 #6F672B #2B6F45
square
#2B336F #6F2B55 #6F672B #2B6F45
split-complementary
#2B336F #6F452B #556F2B
monochromatic
#090A17 #1A1F43 #2B336F #3C479B #5763BE

Accessibility & contrast

On white

11.63
#2B336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2B336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B336F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B336F#FFFFFF#000000##FFFFFF
##2B336F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#04366E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b336f;
/* rgb */ color: rgb(43, 51, 111);
/* oklch */ color: oklch(34.9% 0.103 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b6a99',
    500: '#2b336f',
    950: '#000000',
  },
}
SCSS
$custom: #2b336f;
$custom-light: #6b6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2b336f",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 232.941,
    "s": 44.156,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.1032,
    "h": 274.1
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#2B336F
secondary
#A19855
accent
#C554D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B336F

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

Preview Lab → · Contrast checker → · Palette generator →

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