#2F35A4#2F35A4

#2F35A4 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.175 H 273.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2F35A4
RGBrgb(47, 53, 164)
HSLhsl(237, 55%, 41%)
HSVhsv(237, 71%, 64%)
CMYKcmyk(71.3%, 67.7%, 0%, 35.7%)
CIE-LABlab(28.98, 35.23, -60.44)
CIE-LCHlch(28.98, 69.95, 300.24°)
OKLaboklab(40.22% 0.0093 -0.1746)
OKLCHoklch(40.22% 0.175 273)
XYZxyz(9.1440, 5.8300, 35.7582)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A4 #A49E2F
analogous
#2F70A4 #2F35A4 #642FA4
triadic
#2F35A4 #A42F35 #35A42F
tetradic
#2F35A4 #A42F70 #A49E2F #2FA464
square
#2F35A4 #A42F70 #A49E2F #2FA464
split-complementary
#2F35A4 #A4642F #70A42F
monochromatic
#141645 #212674 #2F35A4 #464DCA #767BD8

Accessibility & contrast

On white

9.69
#2F35A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F35A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A4
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A4#FFFFFF#000000##FFFFFF
##2F35A41.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f35a4;
/* rgb */ color: rgb(47, 53, 164);
/* oklch */ color: oklch(40.2% 0.175 273.0);
Tailwind
colors: {
  custom: {
    50: '#786cc0',
    500: '#2f35a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a4;
$custom-light: #786cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a4",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 236.923,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4022,
    "c": 0.1749,
    "h": 273
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#2F35A4
secondary
#C0BB6F
accent
#D749DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F35A4

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

Preview Lab → · Contrast checker → · Palette generator →

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