#2F279B#2F279B

#2F279B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.179 H 276.3°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F279B
RGBrgb(47, 39, 155)
HSLhsl(244, 60%, 38%)
HSVhsv(244, 75%, 61%)
CMYKcmyk(69.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(25.02, 40.59, -61.48)
CIE-LCHlch(25.02, 73.67, 303.44°)
OKLaboklab(37.11% 0.0195 -0.1777)
OKLCHoklch(37.11% 0.179 276.3)
XYZxyz(7.8123, 4.4212, 31.4457)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F279B #939B27
analogous
#27599B #2F279B #69279B
triadic
#2F279B #9B2F27 #279B2F
tetradic
#2F279B #9B2759 #939B27 #279B69
square
#2F279B #9B2759 #939B27 #279B69
split-complementary
#2F279B #9B6927 #599B27
monochromatic
#110E39 #201B6A #2F279B #3E33CC #6C64D8

Accessibility & contrast

On white

11.14
#2F279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F279B
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F279B#FFFFFF#000000##FFFFFF
##2F279B1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f279b;
/* rgb */ color: rgb(47, 39, 155);
/* oklch */ color: oklch(37.1% 0.179 276.3);
Tailwind
colors: {
  custom: {
    50: '#7863ba',
    500: '#2f279b',
    950: '#000000',
  },
}
SCSS
$custom: #2f279b;
$custom-light: #7863ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f279b",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 244.138,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.17874,
    "h": 276.3
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F279B

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

Preview Lab → · Contrast checker → · Palette generator →

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