#2F35A5#2F35A5

#2F35A5 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.176 H 273.0°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2F35A5
RGBrgb(47, 53, 165)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(71.5%, 67.9%, 0%, 35.3%)
CIE-LABlab(29.07, 35.58, -60.89)
CIE-LCHlch(29.07, 70.52, 300.30°)
OKLaboklab(40.32% 0.0092 -0.176)
OKLCHoklch(40.32% 0.176 273)
XYZxyz(9.2346, 5.8663, 36.2356)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A5 #A59F2F
analogous
#2F70A5 #2F35A5 #642FA5
triadic
#2F35A5 #A52F35 #35A52F
tetradic
#2F35A5 #A52F70 #A59F2F #2FA564
square
#2F35A5 #A52F70 #A59F2F #2FA564
split-complementary
#2F35A5 #A5642F #70A52F
monochromatic
#141646 #212675 #2F35A5 #474DCB #767BD8

Accessibility & contrast

On white

9.66
#2F35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F35A5
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A5#FFFFFF#000000##FFFFFF
##2F35A51.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f35a5;
/* rgb */ color: rgb(47, 53, 165);
/* oklch */ color: oklch(40.3% 0.176 273.0);
Tailwind
colors: {
  custom: {
    50: '#796dc1',
    500: '#2f35a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a5;
$custom-light: #796dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a5",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 236.949,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40316,
    "c": 0.17621,
    "h": 273
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#2F35A5
secondary
#C0BC70
accent
#D749DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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