#2F279C#2F279C

#2F279C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.180 H 276.1°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2F279C
RGBrgb(47, 39, 156)
HSLhsl(244, 60%, 38%)
HSVhsv(244, 75%, 61%)
CMYKcmyk(69.9%, 75%, 0%, 38.8%)
CIE-LABlab(25.12, 40.92, -61.92)
CIE-LCHlch(25.12, 74.22, 303.46°)
OKLaboklab(37.21% 0.0193 -0.179)
OKLCHoklch(37.21% 0.18 276.1)
XYZxyz(7.8966, 4.4550, 31.8898)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279C #949C27
analogous
#27599C #2F279C #6A279C
triadic
#2F279C #9C2F27 #279C2F
tetradic
#2F279C #9C2759 #949C27 #279C6A
square
#2F279C #9C2759 #949C27 #279C6A
split-complementary
#2F279C #9C6A27 #599C27
monochromatic
#110F3A #201B6B #2F279C #3E34CC #6D65D8

Accessibility & contrast

On white

11.10
#2F279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F279C
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279C#FFFFFF#000000##FFFFFF
##2F279C1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f279c;
/* rgb */ color: rgb(47, 39, 156);
/* oklch */ color: oklch(37.2% 0.180 276.1);
Tailwind
colors: {
  custom: {
    50: '#7863ba',
    500: '#2f279c',
    950: '#000000',
  },
}
SCSS
$custom: #2f279c;
$custom-light: #7863ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279c",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 244.103,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.17999,
    "h": 276.1
  },
  "luminance": 0.04456
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F279C

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

Preview Lab → · Contrast checker → · Palette generator →

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