#2F35A8#2F35A8

#2F35A8 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.180 H 272.8°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F35A8
RGBrgb(47, 53, 168)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 66%)
CMYKcmyk(72%, 68.5%, 0%, 34.1%)
CIE-LABlab(29.35, 36.64, -62.23)
CIE-LCHlch(29.35, 72.22, 300.49°)
OKLaboklab(40.61% 0.0088 -0.1799)
OKLCHoklch(40.61% 0.18 272.8)
XYZxyz(9.5109, 5.9768, 37.6906)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F35A8 #A8A22F
analogous
#2F71A8 #2F35A8 #662FA8
triadic
#2F35A8 #A82F35 #35A82F
tetradic
#2F35A8 #A82F71 #A8A22F #2FA866
square
#2F35A8 #A82F71 #A8A22F #2FA866
split-complementary
#2F35A8 #A8662F #71A82F
monochromatic
#141748 #222678 #2F35A8 #484FCC #787DD9

Accessibility & contrast

On white

9.56
#2F35A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F35A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F35A8
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F35A8#FFFFFF#000000##FFFFFF
##2F35A81.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f35a8;
/* rgb */ color: rgb(47, 53, 168);
/* oklch */ color: oklch(40.6% 0.180 272.8);
Tailwind
colors: {
  custom: {
    50: '#796dc3',
    500: '#2f35a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f35a8;
$custom-light: #796dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f35a8",
  "rgb": {
    "r": 47,
    "g": 53,
    "b": 168
  },
  "hsl": {
    "h": 237.025,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40606,
    "c": 0.18012,
    "h": 272.8
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#2F35A8
secondary
#C1BD71
accent
#D848E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F35A8

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

Preview Lab → · Contrast checker → · Palette generator →

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