#2D336F#2D336F

#2D336F is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.103 H 275.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2D336F
RGBrgb(45, 51, 111)
HSLhsl(235, 42%, 31%)
HSVhsv(235, 59%, 44%)
CMYKcmyk(59.5%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.91, 16.98, -35.73)
CIE-LCHlch(23.91, 39.56, 295.42°)
OKLaboklab(35.06% 0.0098 -0.1022)
OKLCHoklch(35.06% 0.103 275.5)
XYZxyz(5.1343, 4.0729, 15.5514)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D336F #6F692D
analogous
#2D546F #2D336F #482D6F
triadic
#2D336F #6F2D33 #336F2D
tetradic
#2D336F #6F2D54 #6F692D #2D6F48
square
#2D336F #6F2D54 #6F692D #2D6F48
split-complementary
#2D336F #6F482D #546F2D
monochromatic
#0A0B18 #1B1F43 #2D336F #3F479B #5A63BC

Accessibility & contrast

On white

11.57
#2D336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D336F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D336F#FFFFFF#000000##FFFFFF
##2D336F1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#06366E
Tritanopia (blue-blind)
#07414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d336f;
/* rgb */ color: rgb(45, 51, 111);
/* oklch */ color: oklch(35.1% 0.103 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c6a99',
    500: '#2d336f',
    950: '#000000',
  },
}
SCSS
$custom: #2d336f;
$custom-light: #6c6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d336f",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 234.545,
    "s": 42.308,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.10265,
    "h": 275.5
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#2D336F
secondary
#A19A57
accent
#C756D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D336F

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

Preview Lab → · Contrast checker → · Palette generator →

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