#2F289B#2F289B

#2F289B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.178 H 276.1°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2F289B
RGBrgb(47, 40, 155)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 74%, 61%)
CMYKcmyk(69.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(25.22, 40.02, -61.14)
CIE-LCHlch(25.22, 73.07, 303.21°)
OKLaboklab(37.25% 0.0189 -0.1767)
OKLCHoklch(37.25% 0.178 276.1)
XYZxyz(7.8455, 4.4878, 31.4568)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F289B #949B28
analogous
#285A9B #2F289B #68289B
triadic
#2F289B #9B2F28 #289B2F
tetradic
#2F289B #9B285A #949B28 #289B68
square
#2F289B #9B285A #949B28 #289B68
split-complementary
#2F289B #9B6828 #5A9B28
monochromatic
#110F3A #201B6A #2F289B #3E35CB #6D66D7

Accessibility & contrast

On white

11.07
#2F289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F289B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F289B#FFFFFF#000000##FFFFFF
##2F289B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f289b;
/* rgb */ color: rgb(47, 40, 155);
/* oklch */ color: oklch(37.3% 0.178 276.1);
Tailwind
colors: {
  custom: {
    50: '#7864ba',
    500: '#2f289b',
    950: '#000000',
  },
}
SCSS
$custom: #2f289b;
$custom-light: #7864ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f289b",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 243.652,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.1777,
    "h": 276.1
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#2F289B
secondary
#B8BD61
accent
#E246D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F289B

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

Preview Lab → · Contrast checker → · Palette generator →

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