#2F279E#2F279E

#2F279E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.182 H 275.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2F279E
RGBrgb(47, 39, 158)
HSLhsl(244, 60%, 39%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.3%, 75.3%, 0%, 38%)
CIE-LABlab(25.33, 41.58, -62.80)
CIE-LCHlch(25.33, 75.32, 303.51°)
OKLaboklab(37.42% 0.0188 -0.1815)
OKLCHoklch(37.42% 0.182 275.9)
XYZxyz(8.0673, 4.5233, 32.7891)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279E #969E27
analogous
#275A9E #2F279E #6A279E
triadic
#2F279E #9E2F27 #279E2F
tetradic
#2F279E #9E275A #969E27 #279E6A
square
#2F279E #9E275A #969E27 #279E6A
split-complementary
#2F279E #9E6A27 #5A9E27
monochromatic
#120F3C #201B6D #2F279E #3F35CD #6E66D9

Accessibility & contrast

On white

11.02
#2F279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F279E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279E#FFFFFF#000000##FFFFFF
##2F279E1.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f279e;
/* rgb */ color: rgb(47, 39, 158);
/* oklch */ color: oklch(37.4% 0.182 275.9);
Tailwind
colors: {
  custom: {
    50: '#7863bc',
    500: '#2f279e',
    950: '#000000',
  },
}
SCSS
$custom: #2f279e;
$custom-light: #7863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279e",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 244.034,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.18248,
    "h": 275.9
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#2F279E
secondary
#B9BF62
accent
#E444D9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F279E

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

Preview Lab → · Contrast checker → · Palette generator →

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