#2F279D#2F279D

#2F279D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.181 H 276.0°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#2F279D
RGBrgb(47, 39, 157)
HSLhsl(244, 60%, 38%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.1%, 75.2%, 0%, 38.4%)
CIE-LABlab(25.23, 41.25, -62.36)
CIE-LCHlch(25.23, 74.77, 303.49°)
OKLaboklab(37.32% 0.019 -0.1802)
OKLCHoklch(37.32% 0.181 276)
XYZxyz(7.9816, 4.4890, 32.3376)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279D #959D27
analogous
#275A9D #2F279D #6A279D
triadic
#2F279D #9D2F27 #279D2F
tetradic
#2F279D #9D275A #959D27 #279D6A
square
#2F279D #9D275A #959D27 #279D6A
split-complementary
#2F279D #9D6A27 #5A9D27
monochromatic
#120F3B #201B6C #2F279D #3F35CD #6D66D9

Accessibility & contrast

On white

11.06
#2F279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F279D
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279D#FFFFFF#000000##FFFFFF
##2F279D1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f279d;
/* rgb */ color: rgb(47, 39, 157);
/* oklch */ color: oklch(37.3% 0.181 276.0);
Tailwind
colors: {
  custom: {
    50: '#7863bb',
    500: '#2f279d',
    950: '#000000',
  },
}
SCSS
$custom: #2f279d;
$custom-light: #7863bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279d",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 244.068,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37319,
    "c": 0.18124,
    "h": 276
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#2F279D
secondary
#B8BF61
accent
#E344D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F279D

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

Preview Lab → · Contrast checker → · Palette generator →

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