#2D35A1#2D35A1

#2D35A1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.171 H 272.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2D35A1
RGBrgb(45, 53, 161)
HSLhsl(236, 56%, 40%)
HSVhsv(236, 72%, 63%)
CMYKcmyk(72%, 67.1%, 0%, 36.9%)
CIE-LABlab(28.58, 33.92, -59.28)
CIE-LCHlch(28.58, 68.30, 299.78°)
OKLaboklab(39.81% 0.0073 -0.1713)
OKLCHoklch(39.81% 0.171 272.4)
XYZxyz(8.7861, 5.6764, 34.3439)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D35A1 #A1992D
analogous
#2D6FA1 #2D35A1 #5F2DA1
triadic
#2D35A1 #A12D35 #35A12D
tetradic
#2D35A1 #A12D6F #A1992D #2DA15F
square
#2D35A1 #A12D6F #A1992D #2DA15F
split-complementary
#2D35A1 #A15F2D #6FA12D
monochromatic
#121641 #202571 #2D35A1 #414BCA #7178D7

Accessibility & contrast

On white

9.83
#2D35A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D35A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D35A1
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D35A1#FFFFFF#000000##FFFFFF
##2D35A11.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d35a1;
/* rgb */ color: rgb(45, 53, 161);
/* oklch */ color: oklch(39.8% 0.171 272.4);
Tailwind
colors: {
  custom: {
    50: '#776cbe',
    500: '#2d35a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d35a1;
$custom-light: #776cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d35a1",
  "rgb": {
    "r": 45,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 235.862,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39814,
    "c": 0.17146,
    "h": 272.4
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#2D35A1
secondary
#BFB96B
accent
#D548E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D35A1

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

Preview Lab → · Contrast checker → · Palette generator →

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