#2F35B9#2F35B9

#2F35B9 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.3% C 0.202 H 271.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2F35B9
RGBrgb(47, 53, 185)
HSLhsl(237, 59%, 45%)
HSVhsv(237, 75%, 73%)
CMYKcmyk(74.6%, 71.4%, 0%, 27.5%)
CIE-LABlab(31.00, 42.53, -69.67)
CIE-LCHlch(31.00, 81.62, 301.41°)
OKLaboklab(42.29% 0.0067 -0.2016)
OKLCHoklch(42.29% 0.202 271.9)
XYZxyz(11.1994, 6.6522, 46.5833)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35B9 #B9B32F
analogous
#2F7AB9 #2F35B9 #6E2FB9
triadic
#2F35B9 #B92F35 #35B92F
tetradic
#2F35B9 #B92F7A #B9B32F #2FB96E
square
#2F35B9 #B92F7A #B9B32F #2FB96E
split-complementary
#2F35B9 #B96E2F #7AB92F
monochromatic
#161957 #232788 #2F35B9 #5258D3 #8387DF

Accessibility & contrast

On white

9.01
#2F35B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F35B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35B9
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35B9#FFFFFF#000000##FFFFFF
##2F35B91.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0042B7
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f35b9;
/* rgb */ color: rgb(47, 53, 185);
/* oklch */ color: oklch(42.3% 0.202 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d6dcf',
    500: '#2f35b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f35b9;
$custom-light: #7d6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35b9",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 237.391,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42292,
    "c": 0.20171,
    "h": 271.9
  },
  "luminance": 0.06653
}

Semantic roles & 50–950 ramp

primary
#2F35B9
secondary
#C9C57B
accent
#DC45E3
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F35B9

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

Preview Lab → · Contrast checker → · Palette generator →

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