#2F35A1#2F35A1

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

Color values

HEX#2F35A1
RGBrgb(47, 53, 161)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 63%)
CMYKcmyk(70.8%, 67.1%, 0%, 36.9%)
CIE-LABlab(28.70, 34.17, -59.07)
CIE-LCHlch(28.70, 68.24, 300.04°)
OKLaboklab(39.93% 0.0096 -0.1707)
OKLCHoklch(39.93% 0.171 273.2)
XYZxyz(8.8763, 5.7229, 34.3481)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A1 #A19B2F
analogous
#2F6EA1 #2F35A1 #622FA1
triadic
#2F35A1 #A12F35 #35A12F
tetradic
#2F35A1 #A12F6E #A19B2F #2FA162
square
#2F35A1 #A12F6E #A19B2F #2FA162
split-complementary
#2F35A1 #A1622F #6EA12F
monochromatic
#131642 #212572 #2F35A1 #454CC9 #7479D6

Accessibility & contrast

On white

9.79
#2F35A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F35A1
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A1#FFFFFF#000000##FFFFFF
##2F35A11.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f35a1;
/* rgb */ color: rgb(47, 53, 161);
/* oklch */ color: oklch(39.9% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#786cbe',
    500: '#2f35a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a1;
$custom-light: #786cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a1",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 236.842,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.17094,
    "h": 273.2
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#2F35A1
secondary
#BEBA6E
accent
#D64ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F35A1

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

Preview Lab → · Contrast checker → · Palette generator →

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