#2F279A#2F279A

#2F279A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.177 H 276.4°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2F279A
RGBrgb(47, 39, 154)
HSLhsl(244, 60%, 38%)
HSVhsv(244, 75%, 60%)
CMYKcmyk(69.5%, 74.7%, 0%, 39.6%)
CIE-LABlab(24.91, 40.26, -61.04)
CIE-LCHlch(24.91, 73.12, 303.41°)
OKLaboklab(37% 0.0197 -0.1764)
OKLCHoklch(37% 0.177 276.4)
XYZxyz(7.7286, 4.3878, 31.0052)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279A #929A27
analogous
#27589A #2F279A #68279A
triadic
#2F279A #9A2F27 #279A2F
tetradic
#2F279A #9A2758 #929A27 #279A68
square
#2F279A #9A2758 #929A27 #279A68
split-complementary
#2F279A #9A6827 #589A27
monochromatic
#110E38 #201B69 #2F279A #3E33CB #6C64D8

Accessibility & contrast

On white

11.18
#2F279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F279A
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279A#FFFFFF#000000##FFFFFF
##2F279A1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f279a;
/* rgb */ color: rgb(47, 39, 154);
/* oklch */ color: oklch(37.0% 0.177 276.4);
Tailwind
colors: {
  custom: {
    50: '#7763b9',
    500: '#2f279a',
    950: '#000000',
  },
}
SCSS
$custom: #2f279a;
$custom-light: #7763b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279a",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 244.174,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37004,
    "c": 0.17748,
    "h": 276.4
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#2F279A
secondary
#B7BD5F
accent
#E345D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F279A

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

Preview Lab → · Contrast checker → · Palette generator →

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