#2F36A8#2F36A8

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

Color values

HEX#2F36A8
RGBrgb(47, 54, 168)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 66%)
CMYKcmyk(72%, 67.9%, 0%, 34.1%)
CIE-LABlab(29.59, 36.01, -61.85)
CIE-LCHlch(29.59, 71.57, 300.21°)
OKLaboklab(40.77% 0.0082 -0.1788)
OKLCHoklch(40.77% 0.179 272.6)
XYZxyz(9.5570, 6.0689, 37.7059)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A8 #A8A12F
analogous
#2F73A8 #2F36A8 #652FA8
triadic
#2F36A8 #A82F36 #36A82F
tetradic
#2F36A8 #A82F73 #A8A12F #2FA865
square
#2F36A8 #A82F73 #A8A12F #2FA865
split-complementary
#2F36A8 #A8652F #73A82F
monochromatic
#141748 #222778 #2F36A8 #4850CC #787ED9

Accessibility & contrast

On white

9.49
#2F36A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F36A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36A8
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A8#FFFFFF#000000##FFFFFF
##2F36A81.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f36a8;
/* rgb */ color: rgb(47, 54, 168);
/* oklch */ color: oklch(40.8% 0.179 272.6);
Tailwind
colors: {
  custom: {
    50: '#796dc3',
    500: '#2f36a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a8;
$custom-light: #796dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a8",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 236.529,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40774,
    "c": 0.17898,
    "h": 272.6
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F36A8

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

Preview Lab → · Contrast checker → · Palette generator →

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