#2F279F#2F279F

#2F279F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.184 H 275.8°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F279F
RGBrgb(47, 39, 159)
HSLhsl(244, 61%, 39%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.4%, 75.5%, 0%, 37.6%)
CIE-LABlab(25.44, 41.92, -63.23)
CIE-LCHlch(25.44, 75.86, 303.54°)
OKLaboklab(37.53% 0.0186 -0.1828)
OKLCHoklch(37.53% 0.184 275.8)
XYZxyz(8.1538, 4.5578, 33.2442)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279F #979F27
analogous
#275B9F #2F279F #6B279F
triadic
#2F279F #9F2F27 #279F2F
tetradic
#2F279F #9F275B #979F27 #279F6B
square
#2F279F #9F275B #979F27 #279F6B
split-complementary
#2F279F #9F6B27 #5B9F27
monochromatic
#120F3D #201B6E #2F279F #4036CE #6E67DA

Accessibility & contrast

On white

10.98
#2F279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F279F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279F#FFFFFF#000000##FFFFFF
##2F279F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f279f;
/* rgb */ color: rgb(47, 39, 159);
/* oklch */ color: oklch(37.5% 0.184 275.8);
Tailwind
colors: {
  custom: {
    50: '#7963bd',
    500: '#2f279f',
    950: '#000000',
  },
}
SCSS
$custom: #2f279f;
$custom-light: #7963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279f",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 244,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3753,
    "c": 0.18373,
    "h": 275.8
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#2F279F
secondary
#B9C062
accent
#E444D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F279F

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

Preview Lab → · Contrast checker → · Palette generator →

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