#2F35A9#2F35A9

#2F35A9 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.181 H 272.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2F35A9
RGBrgb(47, 53, 169)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 66%)
CMYKcmyk(72.2%, 68.6%, 0%, 33.7%)
CIE-LABlab(29.45, 36.99, -62.68)
CIE-LCHlch(29.45, 72.78, 300.55°)
OKLaboklab(40.7% 0.0087 -0.1812)
OKLCHoklch(40.7% 0.181 272.8)
XYZxyz(9.6044, 6.0142, 38.1831)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A9 #A9A32F
analogous
#2F72A9 #2F35A9 #662FA9
triadic
#2F35A9 #A92F35 #35A92F
tetradic
#2F35A9 #A92F72 #A9A32F #2FA966
square
#2F35A9 #A92F72 #A9A32F #2FA966
split-complementary
#2F35A9 #A9662F #72A92F
monochromatic
#141749 #222679 #2F35A9 #494FCC #797EDA

Accessibility & contrast

On white

9.53
#2F35A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F35A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A9
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A9#FFFFFF#000000##FFFFFF
##2F35A91.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f35a9;
/* rgb */ color: rgb(47, 53, 169);
/* oklch */ color: oklch(40.7% 0.181 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a6dc4',
    500: '#2f35a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a9;
$custom-light: #7a6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a9",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 169
  },
  "hsl": {
    "h": 237.049,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40703,
    "c": 0.18142,
    "h": 272.8
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#2F35A9
secondary
#C2BE72
accent
#D848E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F35A9

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

Preview Lab → · Contrast checker → · Palette generator →

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