#2F36A1#2F36A1

#2F36A1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.170 H 273.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2F36A1
RGBrgb(47, 54, 161)
HSLhsl(236, 55%, 41%)
HSVhsv(236, 71%, 63%)
CMYKcmyk(70.8%, 66.5%, 0%, 36.9%)
CIE-LABlab(28.94, 33.53, -58.68)
CIE-LCHlch(28.94, 67.59, 299.74°)
OKLaboklab(40.11% 0.0089 -0.1695)
OKLCHoklch(40.11% 0.17 273)
XYZxyz(8.9223, 5.8150, 34.3635)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A1 #A19A2F
analogous
#2F6FA1 #2F36A1 #612FA1
triadic
#2F36A1 #A12F36 #36A12F
tetradic
#2F36A1 #A12F6F #A19A2F #2FA161
square
#2F36A1 #A12F6F #A19A2F #2FA161
split-complementary
#2F36A1 #A1612F #6FA12F
monochromatic
#131642 #212672 #2F36A1 #454DC9 #747AD6

Accessibility & contrast

On white

9.71
#2F36A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F36A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36A1
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A1#FFFFFF#000000##FFFFFF
##2F36A11.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f36a1;
/* rgb */ color: rgb(47, 54, 161);
/* oklch */ color: oklch(40.1% 0.170 273.0);
Tailwind
colors: {
  custom: {
    50: '#786dbe',
    500: '#2f36a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a1;
$custom-light: #786dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a1",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 161
  },
  "hsl": {
    "h": 236.316,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40108,
    "c": 0.16975,
    "h": 273
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#2F36A1
secondary
#BEB96E
accent
#D54ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F36A1

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

Preview Lab → · Contrast checker → · Palette generator →

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