#2F277A#2F277A

#2F277A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.135 H 280.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2F277A
RGBrgb(47, 39, 122)
HSLhsl(246, 52%, 32%)
HSVhsv(246, 68%, 48%)
CMYKcmyk(61.5%, 68%, 0%, 52.2%)
CIE-LABlab(21.80, 29.40, -46.18)
CIE-LCHlch(21.80, 54.74, 302.48°)
OKLaboklab(33.82% 0.0251 -0.1329)
OKLCHoklch(33.82% 0.135 280.7)
XYZxyz(5.4096, 3.4601, 18.7914)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277A #727A27
analogous
#27497A #2F277A #59277A
triadic
#2F277A #7A2F27 #277A2F
tetradic
#2F277A #7A2749 #727A27 #277A59
square
#2F277A #7A2749 #727A27 #277A59
split-complementary
#2F277A #7A5927 #497A27
monochromatic
#0B091D #1D184C #2F277A #4136A8 #5F53C8

Accessibility & contrast

On white

12.41
#2F277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277A#FFFFFF#000000##FFFFFF
##2F277A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f277a;
/* rgb */ color: rgb(47, 39, 122);
/* oklch */ color: oklch(33.8% 0.135 280.7);
Tailwind
colors: {
  custom: {
    50: '#7162a1',
    500: '#2f277a',
    950: '#000000',
  },
}
SCSS
$custom: #2f277a;
$custom-light: #7162a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277a",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 245.783,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33824,
    "c": 0.13526,
    "h": 280.7
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#2F277A
secondary
#A3AC51
accent
#DB4DCD
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F277A

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

Preview Lab → · Contrast checker → · Palette generator →

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