#2F36B8#2F36B8

#2F36B8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.199 H 271.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F36B8
RGBrgb(47, 54, 184)
HSLhsl(237, 59%, 45%)
HSVhsv(237, 74%, 72%)
CMYKcmyk(74.5%, 70.7%, 0%, 27.8%)
CIE-LABlab(31.12, 41.59, -68.88)
CIE-LCHlch(31.12, 80.46, 301.13°)
OKLaboklab(42.35% 0.0063 -0.1993)
OKLCHoklch(42.35% 0.199 271.8)
XYZxyz(11.1403, 6.7022, 46.0446)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F36B8 #B8B12F
analogous
#2F7BB8 #2F36B8 #6C2FB8
triadic
#2F36B8 #B82F36 #36B82F
tetradic
#2F36B8 #B82F7B #B8B12F #2FB86C
square
#2F36B8 #B82F7B #B8B12F #2FB86C
split-complementary
#2F36B8 #B86C2F #7BB82F
monochromatic
#161957 #232887 #2F36B8 #5258D3 #8287DF

Accessibility & contrast

On white

8.97
#2F36B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F36B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F36B8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F36B8#FFFFFF#000000##FFFFFF
##2F36B81.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f36b8;
/* rgb */ color: rgb(47, 54, 184);
/* oklch */ color: oklch(42.3% 0.199 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6ecf',
    500: '#2f36b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f36b8;
$custom-light: #7d6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f36b8",
  "rgb": {
    "r": 47,
    "g": 54,
    "b": 184
  },
  "hsl": {
    "h": 236.934,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42347,
    "c": 0.19941,
    "h": 271.8
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#2F36B8
secondary
#C8C47B
accent
#DA45E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F36B8

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

Preview Lab → · Contrast checker → · Palette generator →

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