#2F289E#2F289E

#2F289E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.181 H 275.8°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2F289E
RGBrgb(47, 40, 158)
HSLhsl(244, 60%, 39%)
HSVhsv(244, 75%, 62%)
CMYKcmyk(70.3%, 74.7%, 0%, 38%)
CIE-LABlab(25.53, 41.02, -62.46)
CIE-LCHlch(25.53, 74.73, 303.29°)
OKLaboklab(37.57% 0.0183 -0.1805)
OKLCHoklch(37.57% 0.181 275.8)
XYZxyz(8.1006, 4.5898, 32.8001)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289E #979E28
analogous
#285C9E #2F289E #6A289E
triadic
#2F289E #9E2F28 #289E2F
tetradic
#2F289E #9E285C #979E28 #289E6A
square
#2F289E #9E285C #979E28 #289E6A
split-complementary
#2F289E #9E6A28 #5C9E28
monochromatic
#120F3C #201C6D #2F289E #4037CC #6E68D9

Accessibility & contrast

On white

10.95
#2F289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F289E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289E#FFFFFF#000000##FFFFFF
##2F289E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f289e;
/* rgb */ color: rgb(47, 40, 158);
/* oklch */ color: oklch(37.6% 0.181 275.8);
Tailwind
colors: {
  custom: {
    50: '#7864bc',
    500: '#2f289e',
    950: '#000000',
  },
}
SCSS
$custom: #2f289e;
$custom-light: #7864bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289e",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 243.559,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37567,
    "c": 0.18147,
    "h": 275.8
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#2F289E
secondary
#B9BF63
accent
#E345D9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289E

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

Preview Lab → · Contrast checker → · Palette generator →

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