#2F2378#2F2378

#2F2378 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.138 H 282.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2378
RGBrgb(47, 35, 120)
HSLhsl(248, 55%, 30%)
HSVhsv(248, 71%, 47%)
CMYKcmyk(60.8%, 70.8%, 0%, 52.9%)
CIE-LABlab(20.68, 31.24, -46.73)
CIE-LCHlch(20.68, 56.21, 303.76°)
OKLaboklab(32.96% 0.0291 -0.1345)
OKLCHoklch(32.96% 0.138 282.2)
XYZxyz(5.1624, 3.1621, 18.1040)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2378 #6C7823
analogous
#234178 #2F2378 #5A2378
triadic
#2F2378 #782F23 #23782F
tetradic
#2F2378 #782341 #6C7823 #23785A
square
#2F2378 #782341 #6C7823 #23785A
split-complementary
#2F2378 #785A23 #417823
monochromatic
#0A0719 #1C1549 #2F2378 #4231A7 #5D4BCA

Accessibility & contrast

On white

12.86
#2F2378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F2378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2378
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2378#FFFFFF#000000##FFFFFF
##2F23781.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#03394A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f2378;
/* rgb */ color: rgb(47, 35, 120);
/* oklch */ color: oklch(33.0% 0.138 282.2);
Tailwind
colors: {
  custom: {
    50: '#705fa0',
    500: '#2f2378',
    950: '#000000',
  },
}
SCSS
$custom: #2f2378;
$custom-light: #705fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2378",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 248.471,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3296,
    "c": 0.13764,
    "h": 282.2
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#2F2378
secondary
#9DAB4C
accent
#DE4AC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F2378

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

Preview Lab → · Contrast checker → · Palette generator →

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