#2F35A6#2F35A6

#2F35A6 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.178 H 272.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2F35A6
RGBrgb(47, 53, 166)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(71.7%, 68.1%, 0%, 34.9%)
CIE-LABlab(29.17, 35.94, -61.34)
CIE-LCHlch(29.17, 71.09, 300.36°)
OKLaboklab(40.41% 0.0091 -0.1773)
OKLCHoklch(40.41% 0.178 272.9)
XYZxyz(9.3260, 5.9028, 36.7169)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A6 #A6A02F
analogous
#2F71A6 #2F35A6 #652FA6
triadic
#2F35A6 #A62F35 #35A62F
tetradic
#2F35A6 #A62F71 #A6A02F #2FA665
square
#2F35A6 #A62F71 #A6A02F #2FA665
split-complementary
#2F35A6 #A6652F #71A62F
monochromatic
#141747 #212676 #2F35A6 #474ECB #777CD8

Accessibility & contrast

On white

9.63
#2F35A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F35A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A6
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A6#FFFFFF#000000##FFFFFF
##2F35A61.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f35a6;
/* rgb */ color: rgb(47, 53, 166);
/* oklch */ color: oklch(40.4% 0.178 272.9);
Tailwind
colors: {
  custom: {
    50: '#796dc1',
    500: '#2f35a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a6;
$custom-light: #796dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a6",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 236.975,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.17751,
    "h": 272.9
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#2F35A6
secondary
#C1BC70
accent
#D849DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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