#2F36A6#2F36A6

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

Color values

HEX#2F36A6
RGBrgb(47, 54, 166)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(71.7%, 67.5%, 0%, 34.9%)
CIE-LABlab(29.40, 35.31, -60.95)
CIE-LCHlch(29.40, 70.44, 300.08°)
OKLaboklab(40.58% 0.0084 -0.1762)
OKLCHoklch(40.58% 0.176 272.7)
XYZxyz(9.3721, 5.9949, 36.7322)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A6 #A69F2F
analogous
#2F72A6 #2F36A6 #642FA6
triadic
#2F36A6 #A62F36 #36A62F
tetradic
#2F36A6 #A62F72 #A69F2F #2FA664
square
#2F36A6 #A62F72 #A69F2F #2FA664
split-complementary
#2F36A6 #A6642F #72A62F
monochromatic
#141747 #212676 #2F36A6 #474FCB #777DD8

Accessibility & contrast

On white

9.55
#2F36A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F36A6
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A6#FFFFFF#000000##FFFFFF
##2F36A61.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f36a6;
/* rgb */ color: rgb(47, 54, 166);
/* oklch */ color: oklch(40.6% 0.176 272.7);
Tailwind
colors: {
  custom: {
    50: '#796dc1',
    500: '#2f36a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a6;
$custom-light: #796dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a6",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 166
  },
  "hsl": {
    "h": 236.471,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40582,
    "c": 0.17636,
    "h": 272.7
  },
  "luminance": 0.05996
}

Semantic roles & 50–950 ramp

primary
#2F36A6
secondary
#C1BC70
accent
#D649DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F36A6

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

Preview Lab → · Contrast checker → · Palette generator →

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