#2F35AB#2F35AB

#2F35AB is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.184 H 272.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2F35AB
RGBrgb(47, 53, 171)
HSLhsl(237, 57%, 43%)
HSVhsv(237, 73%, 67%)
CMYKcmyk(72.5%, 69%, 0%, 32.9%)
CIE-LABlab(29.64, 37.69, -63.57)
CIE-LCHlch(29.64, 73.90, 300.67°)
OKLaboklab(40.9% 0.0085 -0.1838)
OKLCHoklch(40.9% 0.184 272.6)
XYZxyz(9.7936, 6.0898, 39.1795)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35AB #ABA52F
analogous
#2F73AB #2F35AB #672FAB
triadic
#2F35AB #AB2F35 #35AB2F
tetradic
#2F35AB #AB2F73 #ABA52F #2FAB67
square
#2F35AB #AB2F73 #ABA52F #2FAB67
split-complementary
#2F35AB #AB672F #73AB2F
monochromatic
#15174B #22267B #2F35AB #4A50CD #7A7FDA

Accessibility & contrast

On white

9.47
#2F35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35AB
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35AB#FFFFFF#000000##FFFFFF
##2F35AB1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f35ab;
/* rgb */ color: rgb(47, 53, 171);
/* oklch */ color: oklch(40.9% 0.184 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a6dc5',
    500: '#2f35ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f35ab;
$custom-light: #7a6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35ab",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 237.097,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.18401,
    "h": 272.6
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

primary
#2F35AB
secondary
#C3BF73
accent
#D948E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F35AB

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

Preview Lab → · Contrast checker → · Palette generator →

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