#2F3788#2F3788

#2F3788 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.134 H 273.9°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2F3788
RGBrgb(47, 55, 136)
HSLhsl(235, 49%, 36%)
HSVhsv(235, 65%, 53%)
CMYKcmyk(65.4%, 59.6%, 0%, 46.7%)
CIE-LABlab(27.06, 23.81, -46.42)
CIE-LCHlch(27.06, 52.17, 297.15°)
OKLaboklab(38.06% 0.0091 -0.1335)
OKLCHoklch(38.06% 0.134 273.9)
XYZxyz(6.9809, 5.1137, 23.9069)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3788 #88802F
analogous
#2F6388 #2F3788 #532F88
triadic
#2F3788 #882F37 #37882F
tetradic
#2F3788 #882F63 #88802F #2F8853
square
#2F3788 #882F63 #88802F #2F8853
split-complementary
#2F3788 #88532F #63882F
monochromatic
#10122D #1F255B #2F3788 #3F49B5 #6770CA

Accessibility & contrast

On white

10.38
#2F3788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F3788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3788
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3788#FFFFFF#000000##FFFFFF
##2F37881.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3788;
/* rgb */ color: rgb(47, 55, 136);
/* oklch */ color: oklch(38.1% 0.134 273.9);
Tailwind
colors: {
  custom: {
    50: '#726dab',
    500: '#2f3788',
    950: '#000000',
  },
}
SCSS
$custom: #2f3788;
$custom-light: #726dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3788",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 234.607,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38057,
    "c": 0.13383,
    "h": 273.9
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#2F3788
secondary
#B1AA61
accent
#CC50D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3788

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

Preview Lab → · Contrast checker → · Palette generator →

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