#2F36A3#2F36A3

#2F36A3 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.172 H 272.9°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2F36A3
RGBrgb(47, 54, 163)
HSLhsl(236, 55%, 41%)
HSVhsv(236, 71%, 64%)
CMYKcmyk(71.2%, 66.9%, 0%, 36.1%)
CIE-LABlab(29.12, 34.24, -59.60)
CIE-LCHlch(29.12, 68.73, 299.88°)
OKLaboklab(40.3% 0.0087 -0.1722)
OKLCHoklch(40.3% 0.172 272.9)
XYZxyz(9.1001, 5.8861, 35.2998)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A3 #A39C2F
analogous
#2F70A3 #2F36A3 #622FA3
triadic
#2F36A3 #A32F36 #36A32F
tetradic
#2F36A3 #A32F70 #A39C2F #2FA362
square
#2F36A3 #A32F70 #A39C2F #2FA362
split-complementary
#2F36A3 #A3622F #70A32F
monochromatic
#141744 #212673 #2F36A3 #464ECA #757BD7

Accessibility & contrast

On white

9.64
#2F36A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F36A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36A3
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A3#FFFFFF#000000##FFFFFF
##2F36A31.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#003FA1
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f36a3;
/* rgb */ color: rgb(47, 54, 163);
/* oklch */ color: oklch(40.3% 0.172 272.9);
Tailwind
colors: {
  custom: {
    50: '#786dbf',
    500: '#2f36a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a3;
$custom-light: #786dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a3",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 163
  },
  "hsl": {
    "h": 236.379,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.17241,
    "h": 272.9
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#2F36A3
secondary
#BFBA6F
accent
#D649DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F36A3

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

Preview Lab → · Contrast checker → · Palette generator →

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