#2F289D#2F289D

#2F289D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.180 H 275.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F289D
RGBrgb(47, 40, 157)
HSLhsl(244, 59%, 39%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.1%, 74.5%, 0%, 38.4%)
CIE-LABlab(25.43, 40.69, -62.02)
CIE-LCHlch(25.43, 74.18, 303.26°)
OKLaboklab(37.46% 0.0185 -0.1793)
OKLCHoklch(37.46% 0.18 275.9)
XYZxyz(8.0149, 4.5555, 32.3487)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289D #969D28
analogous
#285B9D #2F289D #69289D
triadic
#2F289D #9D2F28 #289D2F
tetradic
#2F289D #9D285B #969D28 #289D69
square
#2F289D #9D285B #969D28 #289D69
split-complementary
#2F289D #9D6928 #5B9D28
monochromatic
#120F3B #201C6C #2F289D #3F36CC #6E67D8

Accessibility & contrast

On white

10.99
#2F289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F289D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289D#FFFFFF#000000##FFFFFF
##2F289D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f289d;
/* rgb */ color: rgb(47, 40, 157);
/* oklch */ color: oklch(37.5% 0.180 275.9);
Tailwind
colors: {
  custom: {
    50: '#7864bb',
    500: '#2f289d',
    950: '#000000',
  },
}
SCSS
$custom: #2f289d;
$custom-light: #7864bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289d",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 243.59,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37463,
    "c": 0.18022,
    "h": 275.9
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#2F289D
secondary
#B9BE62
accent
#E345D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289D

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

Preview Lab → · Contrast checker → · Palette generator →

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