#2F35A2#2F35A2

#2F35A2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.172 H 273.1°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2F35A2
RGBrgb(47, 53, 162)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 64%)
CMYKcmyk(71%, 67.3%, 0%, 36.5%)
CIE-LABlab(28.79, 34.52, -59.53)
CIE-LCHlch(28.79, 68.81, 300.11°)
OKLaboklab(40.03% 0.0095 -0.172)
OKLCHoklch(40.03% 0.172 273.1)
XYZxyz(8.9648, 5.7583, 34.8144)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A2 #A29C2F
analogous
#2F6EA2 #2F35A2 #622FA2
triadic
#2F35A2 #A22F35 #35A22F
tetradic
#2F35A2 #A22F6E #A29C2F #2FA262
square
#2F35A2 #A22F6E #A29C2F #2FA262
split-complementary
#2F35A2 #A2622F #6EA22F
monochromatic
#131643 #212573 #2F35A2 #454CC9 #757AD7

Accessibility & contrast

On white

9.76
#2F35A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F35A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A2
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A2#FFFFFF#000000##FFFFFF
##2F35A21.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f35a2;
/* rgb */ color: rgb(47, 53, 162);
/* oklch */ color: oklch(40.0% 0.172 273.1);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2f35a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a2;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a2",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 236.87,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40029,
    "c": 0.17226,
    "h": 273.1
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#2F35A2
secondary
#BFBA6E
accent
#D749DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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