#2F277B#2F277B

#2F277B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.137 H 280.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2F277B
RGBrgb(47, 39, 123)
HSLhsl(246, 52%, 32%)
HSVhsv(246, 68%, 48%)
CMYKcmyk(61.8%, 68.3%, 0%, 51.8%)
CIE-LABlab(21.89, 29.74, -46.67)
CIE-LCHlch(21.89, 55.34, 302.51°)
OKLaboklab(33.92% 0.025 -0.1343)
OKLCHoklch(33.92% 0.137 280.5)
XYZxyz(5.4718, 3.4851, 19.1194)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277B #737B27
analogous
#27497B #2F277B #59277B
triadic
#2F277B #7B2F27 #277B2F
tetradic
#2F277B #7B2749 #737B27 #277B59
square
#2F277B #7B2749 #737B27 #277B59
split-complementary
#2F277B #7B5927 #497B27
monochromatic
#0B0A1E #1D184D #2F277B #4136A9 #5F54C9

Accessibility & contrast

On white

12.37
#2F277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277B
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277B#FFFFFF#000000##FFFFFF
##2F277B1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f277b;
/* rgb */ color: rgb(47, 39, 123);
/* oklch */ color: oklch(33.9% 0.137 280.5);
Tailwind
colors: {
  custom: {
    50: '#7162a2',
    500: '#2f277b',
    950: '#000000',
  },
}
SCSS
$custom: #2f277b;
$custom-light: #7162a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277b",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 245.714,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.13665,
    "h": 280.5
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#2F277B
secondary
#A4AD51
accent
#DB4CCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F277B

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

Preview Lab → · Contrast checker → · Palette generator →

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