#2F289A#2F289A

#2F289A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.176 H 276.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2F289A
RGBrgb(47, 40, 154)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 74%, 60%)
CMYKcmyk(69.5%, 74%, 0%, 39.6%)
CIE-LABlab(25.12, 39.69, -60.70)
CIE-LCHlch(25.12, 72.52, 303.18°)
OKLaboklab(37.15% 0.0191 -0.1754)
OKLCHoklch(37.15% 0.176 276.2)
XYZxyz(7.7619, 4.4543, 31.0163)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289A #939A28
analogous
#285A9A #2F289A #68289A
triadic
#2F289A #9A2F28 #289A2F
tetradic
#2F289A #9A285A #939A28 #289A68
square
#2F289A #9A285A #939A28 #289A68
split-complementary
#2F289A #9A6828 #5A9A28
monochromatic
#110F39 #201B69 #2F289A #3E35CA #6C65D7

Accessibility & contrast

On white

11.11
#2F289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F289A
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289A#FFFFFF#000000##FFFFFF
##2F289A1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f289a;
/* rgb */ color: rgb(47, 40, 154);
/* oklch */ color: oklch(37.1% 0.176 276.2);
Tailwind
colors: {
  custom: {
    50: '#7764b9',
    500: '#2f289a',
    950: '#000000',
  },
}
SCSS
$custom: #2f289a;
$custom-light: #7764b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289a",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 243.684,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3715,
    "c": 0.17644,
    "h": 276.2
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#2F289A
secondary
#B7BD61
accent
#E246D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289A

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

Preview Lab → · Contrast checker → · Palette generator →

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