#2F35A7#2F35A7

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

Color values

HEX#2F35A7
RGBrgb(47, 53, 167)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(71.9%, 68.3%, 0%, 34.5%)
CIE-LABlab(29.26, 36.29, -61.78)
CIE-LCHlch(29.26, 71.65, 300.43°)
OKLaboklab(40.51% 0.009 -0.1786)
OKLCHoklch(40.51% 0.179 272.9)
XYZxyz(9.4181, 5.9396, 37.2018)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A7 #A7A12F
analogous
#2F71A7 #2F35A7 #652FA7
triadic
#2F35A7 #A72F35 #35A72F
tetradic
#2F35A7 #A72F71 #A7A12F #2FA765
square
#2F35A7 #A72F71 #A7A12F #2FA765
split-complementary
#2F35A7 #A7652F #71A72F
monochromatic
#141747 #222677 #2F35A7 #484ECB #787CD9

Accessibility & contrast

On white

9.60
#2F35A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F35A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A7
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A7#FFFFFF#000000##FFFFFF
##2F35A71.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f35a7;
/* rgb */ color: rgb(47, 53, 167);
/* oklch */ color: oklch(40.5% 0.179 272.9);
Tailwind
colors: {
  custom: {
    50: '#796dc2',
    500: '#2f35a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a7;
$custom-light: #796dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a7",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 237,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.17882,
    "h": 272.9
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#2F35A7
secondary
#C1BD71
accent
#D848DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F35A7

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

Preview Lab → · Contrast checker → · Palette generator →

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