#2F36B2#2F36B2

#2F36B2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.192 H 272.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2F36B2
RGBrgb(47, 54, 178)
HSLhsl(237, 58%, 44%)
HSVhsv(237, 74%, 70%)
CMYKcmyk(73.6%, 69.7%, 0%, 30.2%)
CIE-LABlab(30.53, 39.52, -66.28)
CIE-LCHlch(30.53, 77.17, 300.81°)
OKLaboklab(41.75% 0.0071 -0.1917)
OKLCHoklch(41.75% 0.192 272.1)
XYZxyz(10.5246, 6.4559, 42.8023)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36B2 #B2AB2F
analogous
#2F78B2 #2F36B2 #6A2FB2
triadic
#2F36B2 #B22F36 #36B22F
tetradic
#2F36B2 #B22F78 #B2AB2F #2FB26A
square
#2F36B2 #B22F78 #B2AB2F #2FB26A
split-complementary
#2F36B2 #B26A2F #78B22F
monochromatic
#151951 #222782 #2F36B2 #4E55D0 #7E83DD

Accessibility & contrast

On white

9.16
#2F36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36B2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36B2#FFFFFF#000000##FFFFFF
##2F36B21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f36b2;
/* rgb */ color: rgb(47, 54, 178);
/* oklch */ color: oklch(41.7% 0.192 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c6eca',
    500: '#2f36b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f36b2;
$custom-light: #7c6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36b2",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 236.794,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41749,
    "c": 0.19185,
    "h": 272.1
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#2F36B2
secondary
#C6C277
accent
#D946E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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