#2D336D#2D336D

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

Color values

HEX#2D336D
RGBrgb(45, 51, 109)
HSLhsl(234, 42%, 30%)
HSVhsv(234, 59%, 43%)
CMYKcmyk(58.7%, 53.2%, 0%, 57.3%)
CIE-LABlab(23.77, 16.25, -34.68)
CIE-LCHlch(23.77, 38.30, 295.11°)
OKLaboklab(34.91% 0.0096 -0.0991)
OKLCHoklch(34.91% 0.1 275.5)
XYZxyz(5.0254, 4.0293, 14.9780)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D336D #6D672D
analogous
#2D536D #2D336D #472D6D
triadic
#2D336D #6D2D33 #336D2D
tetradic
#2D336D #6D2D53 #6D672D #2D6D47
square
#2D336D #6D2D53 #6D672D #2D6D47
split-complementary
#2D336D #6D472D #536D2D
monochromatic
#090A16 #1B1F42 #2D336D #3F4798 #5A63BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D336D#FFFFFF#000000##FFFFFF
##2D336D1.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)
#153B6F
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#0A404B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d336d;
/* rgb */ color: rgb(45, 51, 109);
/* oklch */ color: oklch(34.9% 0.100 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c6a97',
    500: '#2d336d',
    950: '#000000',
  },
}
SCSS
$custom: #2d336d;
$custom-light: #6c6a97;
$custom-dark: #000000;
JSON
{
  "hex": "#2d336d",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 234.375,
    "s": 41.558,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3491,
    "c": 0.09954,
    "h": 275.5
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#2D336D
secondary
#9F9857
accent
#C656D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2D336D

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

Preview Lab → · Contrast checker → · Palette generator →

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