#2F289C#2F289C

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

Color values

HEX#2F289C
RGBrgb(47, 40, 156)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 74%, 61%)
CMYKcmyk(69.9%, 74.4%, 0%, 38.8%)
CIE-LABlab(25.33, 40.35, -61.58)
CIE-LCHlch(25.33, 73.63, 303.24°)
OKLaboklab(37.36% 0.0187 -0.178)
OKLCHoklch(37.36% 0.179 276)
XYZxyz(7.9299, 4.5215, 31.9009)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289C #959C28
analogous
#285B9C #2F289C #69289C
triadic
#2F289C #9C2F28 #289C2F
tetradic
#2F289C #9C285B #959C28 #289C69
square
#2F289C #9C285B #959C28 #289C69
split-complementary
#2F289C #9C6928 #5B9C28
monochromatic
#120F3B #201C6B #2F289C #3F36CB #6D67D8

Accessibility & contrast

On white

11.03
#2F289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F289C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289C#FFFFFF#000000##FFFFFF
##2F289C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f289c;
/* rgb */ color: rgb(47, 40, 156);
/* oklch */ color: oklch(37.4% 0.179 276.0);
Tailwind
colors: {
  custom: {
    50: '#7864ba',
    500: '#2f289c',
    950: '#000000',
  },
}
SCSS
$custom: #2f289c;
$custom-light: #7864ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289c",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 243.621,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.17897,
    "h": 276
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#2F289C
secondary
#B8BE62
accent
#E245D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289C

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

Preview Lab → · Contrast checker → · Palette generator →

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