#2F36A7#2F36A7

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

Color values

HEX#2F36A7
RGBrgb(47, 54, 167)
HSLhsl(237, 56%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(71.9%, 67.7%, 0%, 34.5%)
CIE-LABlab(29.49, 35.66, -61.40)
CIE-LCHlch(29.49, 71.01, 300.15°)
OKLaboklab(40.68% 0.0083 -0.1775)
OKLCHoklch(40.68% 0.178 272.7)
XYZxyz(9.4642, 6.0318, 37.2172)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A7 #A7A02F
analogous
#2F72A7 #2F36A7 #642FA7
triadic
#2F36A7 #A72F36 #36A72F
tetradic
#2F36A7 #A72F72 #A7A02F #2FA764
square
#2F36A7 #A72F72 #A7A02F #2FA764
split-complementary
#2F36A7 #A7642F #72A72F
monochromatic
#141747 #222777 #2F36A7 #484FCB #787DD9

Accessibility & contrast

On white

9.52
#2F36A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F36A7
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A7#FFFFFF#000000##FFFFFF
##2F36A71.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f36a7;
/* rgb */ color: rgb(47, 54, 167);
/* oklch */ color: oklch(40.7% 0.178 272.7);
Tailwind
colors: {
  custom: {
    50: '#796dc2',
    500: '#2f36a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a7;
$custom-light: #796dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a7",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 167
  },
  "hsl": {
    "h": 236.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.17767,
    "h": 272.7
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#2F36A7
secondary
#C1BC71
accent
#D748DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F36A7

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

Preview Lab → · Contrast checker → · Palette generator →

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