#2F288F#2F288F

#2F288F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.162 H 277.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2F288F
RGBrgb(47, 40, 143)
HSLhsl(244, 56%, 36%)
HSVhsv(244, 72%, 56%)
CMYKcmyk(67.1%, 72%, 0%, 43.9%)
CIE-LABlab(24.01, 35.98, -55.74)
CIE-LCHlch(24.01, 66.34, 302.84°)
OKLaboklab(36.03% 0.0211 -0.1609)
OKLCHoklch(36.03% 0.162 277.5)
XYZxyz(6.8874, 4.1045, 26.4106)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288F #888F28
analogous
#28548F #2F288F #62288F
triadic
#2F288F #8F2F28 #288F2F
tetradic
#2F288F #8F2854 #888F28 #288F62
square
#2F288F #8F2854 #888F28 #288F62
split-complementary
#2F288F #8F6228 #548F28
monochromatic
#100D2F #1F1B5F #2F288F #3F35BF #675FD2

Accessibility & contrast

On white

11.53
#2F288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F288F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288F#FFFFFF#000000##FFFFFF
##2F288F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f288f;
/* rgb */ color: rgb(47, 40, 143);
/* oklch */ color: oklch(36.0% 0.162 277.5);
Tailwind
colors: {
  custom: {
    50: '#7563b1',
    500: '#2f288f',
    950: '#000000',
  },
}
SCSS
$custom: #2f288f;
$custom-light: #7563b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288f",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 244.078,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.1623,
    "h": 277.5
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#2F288F
secondary
#B1B85B
accent
#E048D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F288F

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

Preview Lab → · Contrast checker → · Palette generator →

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