#2F36AB#2F36AB

#2F36AB is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.183 H 272.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2F36AB
RGBrgb(47, 54, 171)
HSLhsl(237, 57%, 43%)
HSVhsv(237, 73%, 67%)
CMYKcmyk(72.5%, 68.4%, 0%, 32.9%)
CIE-LABlab(29.87, 37.07, -63.19)
CIE-LCHlch(29.87, 73.26, 300.40°)
OKLaboklab(41.06% 0.0079 -0.1827)
OKLCHoklch(41.06% 0.183 272.5)
XYZxyz(9.8397, 6.1820, 39.1949)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36AB #ABA42F
analogous
#2F74AB #2F36AB #662FAB
triadic
#2F36AB #AB2F36 #36AB2F
tetradic
#2F36AB #AB2F74 #ABA42F #2FAB66
square
#2F36AB #AB2F74 #ABA42F #2FAB66
split-complementary
#2F36AB #AB662F #74AB2F
monochromatic
#15184B #22277B #2F36AB #4A51CD #7A7FDA

Accessibility & contrast

On white

9.39
#2F36AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F36AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36AB
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36AB#FFFFFF#000000##FFFFFF
##2F36AB1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f36ab;
/* rgb */ color: rgb(47, 54, 171);
/* oklch */ color: oklch(41.1% 0.183 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a6dc5',
    500: '#2f36ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f36ab;
$custom-light: #7a6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36ab",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 236.613,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.18288,
    "h": 272.5
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#2F36AB
secondary
#C3BE73
accent
#D848E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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