#2F277E#2F277E

#2F277E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.141 H 280.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2F277E
RGBrgb(47, 39, 126)
HSLhsl(246, 53%, 32%)
HSVhsv(246, 69%, 49%)
CMYKcmyk(62.7%, 69%, 0%, 50.6%)
CIE-LABlab(22.16, 30.78, -48.12)
CIE-LCHlch(22.16, 57.12, 302.60°)
OKLaboklab(34.2% 0.0246 -0.1386)
OKLCHoklch(34.2% 0.141 280)
XYZxyz(5.6625, 3.5613, 20.1236)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277E #767E27
analogous
#274B7E #2F277E #5A277E
triadic
#2F277E #7E2F27 #277E2F
tetradic
#2F277E #7E274B #767E27 #277E5A
square
#2F277E #7E274B #767E27 #277E5A
split-complementary
#2F277E #7E5A27 #4B7E27
monochromatic
#0C0A21 #1E194F #2F277E #4035AD #6055CA

Accessibility & contrast

On white

12.26
#2F277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277E#FFFFFF#000000##FFFFFF
##2F277E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f277e;
/* rgb */ color: rgb(47, 39, 126);
/* oklch */ color: oklch(34.2% 0.141 280.0);
Tailwind
colors: {
  custom: {
    50: '#7162a4',
    500: '#2f277e',
    950: '#000000',
  },
}
SCSS
$custom: #2f277e;
$custom-light: #7162a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277e",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 245.517,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34201,
    "c": 0.14078,
    "h": 280
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#2F277E
secondary
#A7AF52
accent
#DC4CCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F277E

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

Preview Lab → · Contrast checker → · Palette generator →

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