#2D336B#2D336B

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

Color values

HEX#2D336B
RGBrgb(45, 51, 107)
HSLhsl(234, 41%, 30%)
HSVhsv(234, 58%, 42%)
CMYKcmyk(57.9%, 52.3%, 0%, 58%)
CIE-LABlab(23.63, 15.52, -33.62)
CIE-LCHlch(23.63, 37.03, 294.79°)
OKLaboklab(34.76% 0.0094 -0.0959)
OKLCHoklch(34.76% 0.096 275.6)
XYZxyz(4.9190, 3.9867, 14.4174)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D336B #6B652D
analogous
#2D526B #2D336B #462D6B
triadic
#2D336B #6B2D33 #336B2D
tetradic
#2D336B #6B2D52 #6B652D #2D6B46
square
#2D336B #6B2D52 #6B652D #2D6B46
split-complementary
#2D336B #6B462D #526B2D
monochromatic
#090A16 #1B1E40 #2D336B #3F4896 #5962B9

Accessibility & contrast

On white

11.68
#2D336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D336B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D336B#FFFFFF#000000##FFFFFF
##2D336B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#0D3F4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d336b;
/* rgb */ color: rgb(45, 51, 107);
/* oklch */ color: oklch(34.8% 0.096 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c6a96',
    500: '#2d336b',
    950: '#000000',
  },
}
SCSS
$custom: #2d336b;
$custom-light: #6c6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#2d336b",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 234.194,
    "s": 40.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.09641,
    "h": 275.6
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#2D336B
secondary
#9D9657
accent
#C557D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2D336B

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

Preview Lab → · Contrast checker → · Palette generator →

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