#2F36A5#2F36A5

#2F36A5 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.175 H 272.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2F36A5
RGBrgb(47, 54, 165)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(71.5%, 67.3%, 0%, 35.3%)
CIE-LABlab(29.31, 34.95, -60.50)
CIE-LCHlch(29.31, 69.87, 300.02°)
OKLaboklab(40.49% 0.0085 -0.1748)
OKLCHoklch(40.49% 0.175 272.8)
XYZxyz(9.2807, 5.9584, 36.2510)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36A5 #A59E2F
analogous
#2F71A5 #2F36A5 #632FA5
triadic
#2F36A5 #A52F36 #36A52F
tetradic
#2F36A5 #A52F71 #A59E2F #2FA563
square
#2F36A5 #A52F71 #A59E2F #2FA563
split-complementary
#2F36A5 #A5632F #71A52F
monochromatic
#141746 #212675 #2F36A5 #474FCB #767CD8

Accessibility & contrast

On white

9.58
#2F36A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F36A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36A5
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36A5#FFFFFF#000000##FFFFFF
##2F36A51.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f36a5;
/* rgb */ color: rgb(47, 54, 165);
/* oklch */ color: oklch(40.5% 0.175 272.8);
Tailwind
colors: {
  custom: {
    50: '#796dc1',
    500: '#2f36a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f36a5;
$custom-light: #796dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36a5",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 165
  },
  "hsl": {
    "h": 236.441,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.17505,
    "h": 272.8
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#2F36A5
secondary
#C0BB70
accent
#D649DF
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F36A5

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

Preview Lab → · Contrast checker → · Palette generator →

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