#2F36B6#2F36B6

#2F36B6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.197 H 271.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2F36B6
RGBrgb(47, 54, 182)
HSLhsl(237, 59%, 45%)
HSVhsv(237, 74%, 71%)
CMYKcmyk(74.2%, 70.3%, 0%, 28.6%)
CIE-LABlab(30.92, 40.91, -68.02)
CIE-LCHlch(30.92, 79.37, 301.02°)
OKLaboklab(42.15% 0.0066 -0.1968)
OKLCHoklch(42.15% 0.197 271.9)
XYZxyz(10.9321, 6.6189, 44.9483)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36B6 #B6AF2F
analogous
#2F79B6 #2F36B6 #6C2FB6
triadic
#2F36B6 #B62F36 #36B62F
tetradic
#2F36B6 #B62F79 #B6AF2F #2FB66C
square
#2F36B6 #B62F79 #B6AF2F #2FB66C
split-complementary
#2F36B6 #B66C2F #79B62F
monochromatic
#161955 #222885 #2F36B6 #5057D2 #8186DE

Accessibility & contrast

On white

9.04
#2F36B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F36B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36B6
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36B6#FFFFFF#000000##FFFFFF
##2F36B61.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0042B4
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f36b6;
/* rgb */ color: rgb(47, 54, 182);
/* oklch */ color: oklch(42.1% 0.197 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d6ecd',
    500: '#2f36b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f36b6;
$custom-light: #7d6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36b6",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 182
  },
  "hsl": {
    "h": 236.889,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.19691,
    "h": 271.9
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#2F36B6
secondary
#C7C379
accent
#DA46E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F36B6

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

Preview Lab → · Contrast checker → · Palette generator →

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