#2F35B2#2F35B2

#2F35B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.193 H 272.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2F35B2
RGBrgb(47, 53, 178)
HSLhsl(237, 58%, 44%)
HSVhsv(237, 74%, 70%)
CMYKcmyk(73.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(30.31, 40.13, -66.64)
CIE-LCHlch(30.31, 77.79, 301.05°)
OKLaboklab(41.59% 0.0076 -0.1928)
OKLCHoklch(41.59% 0.193 272.3)
XYZxyz(10.4786, 6.3638, 42.7869)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35B2 #B2AC2F
analogous
#2F77B2 #2F35B2 #6B2FB2
triadic
#2F35B2 #B22F35 #35B22F
tetradic
#2F35B2 #B22F77 #B2AC2F #2FB26B
square
#2F35B2 #B22F77 #B2AC2F #2FB26B
split-complementary
#2F35B2 #B26B2F #77B22F
monochromatic
#151851 #222782 #2F35B2 #4E54D0 #7E83DD

Accessibility & contrast

On white

9.24
#2F35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35B2
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35B2#FFFFFF#000000##FFFFFF
##2F35B21.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f35b2;
/* rgb */ color: rgb(47, 53, 178);
/* oklch */ color: oklch(41.6% 0.193 272.3);
Tailwind
colors: {
  custom: {
    50: '#7c6dca',
    500: '#2f35b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f35b2;
$custom-light: #7c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35b2",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 237.252,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41589,
    "c": 0.19294,
    "h": 272.3
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#2F35B2
secondary
#C6C277
accent
#DA46E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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