#2F277F#2F277F

#2F277F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.142 H 279.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2F277F
RGBrgb(47, 39, 127)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 69%, 50%)
CMYKcmyk(63%, 69.3%, 0%, 50.2%)
CIE-LABlab(22.26, 31.12, -48.60)
CIE-LCHlch(22.26, 57.71, 302.63°)
OKLaboklab(34.3% 0.0244 -0.14)
OKLCHoklch(34.3% 0.142 279.9)
XYZxyz(5.7274, 3.5873, 20.4652)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277F #777F27
analogous
#274B7F #2F277F #5B277F
triadic
#2F277F #7F2F27 #277F2F
tetradic
#2F277F #7F274B #777F27 #277F5B
square
#2F277F #7F274B #777F27 #277F5B
split-complementary
#2F277F #7F5B27 #4B7F27
monochromatic
#0C0A21 #1E1950 #2F277F #4035AE #6055CB

Accessibility & contrast

On white

12.23
#2F277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277F#FFFFFF#000000##FFFFFF
##2F277F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f277f;
/* rgb */ color: rgb(47, 39, 127);
/* oklch */ color: oklch(34.3% 0.142 279.9);
Tailwind
colors: {
  custom: {
    50: '#7262a5',
    500: '#2f277f',
    950: '#000000',
  },
}
SCSS
$custom: #2f277f;
$custom-light: #7262a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277f",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 245.455,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34296,
    "c": 0.14214,
    "h": 279.9
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#2F277F
secondary
#A7B052
accent
#DC4BCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F277F

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

Preview Lab → · Contrast checker → · Palette generator →

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