#2F35B5#2F35B5

#2F35B5 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.9% C 0.197 H 272.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2F35B5
RGBrgb(47, 53, 181)
HSLhsl(237, 59%, 45%)
HSVhsv(237, 74%, 71%)
CMYKcmyk(74%, 70.7%, 0%, 29%)
CIE-LABlab(30.61, 41.16, -67.94)
CIE-LCHlch(30.61, 79.44, 301.21°)
OKLaboklab(41.89% 0.0072 -0.1966)
OKLCHoklch(41.89% 0.197 272.1)
XYZxyz(10.7831, 6.4856, 44.3907)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35B5 #B5AF2F
analogous
#2F78B5 #2F35B5 #6C2FB5
triadic
#2F35B5 #B52F35 #35B52F
tetradic
#2F35B5 #B52F78 #B5AF2F #2FB56C
square
#2F35B5 #B52F78 #B5AF2F #2FB56C
split-complementary
#2F35B5 #B56C2F #78B52F
monochromatic
#161954 #222784 #2F35B5 #5056D1 #8085DE

Accessibility & contrast

On white

9.14
#2F35B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F35B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35B5
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35B5#FFFFFF#000000##FFFFFF
##2F35B51.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f35b5;
/* rgb */ color: rgb(47, 53, 181);
/* oklch */ color: oklch(41.9% 0.197 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c6dcc',
    500: '#2f35b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f35b5;
$custom-light: #7c6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35b5",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 237.313,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41889,
    "c": 0.19672,
    "h": 272.1
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#2F35B5
secondary
#C7C479
accent
#DB46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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