#2F288B#2F288B

#2F288B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.157 H 278.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F288B
RGBrgb(47, 40, 139)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(66.2%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.62, 34.62, -53.90)
CIE-LCHlch(23.62, 64.05, 302.71°)
OKLaboklab(35.63% 0.0218 -0.1555)
OKLCHoklch(35.63% 0.157 278)
XYZxyz(6.5898, 3.9855, 24.8431)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288B #848B28
analogous
#28538B #2F288B #60288B
triadic
#2F288B #8B2F28 #288B2F
tetradic
#2F288B #8B2853 #848B28 #288B60
square
#2F288B #8B2853 #848B28 #288B60
split-complementary
#2F288B #8B6028 #538B28
monochromatic
#0F0D2C #1F1A5B #2F288B #3F36BB #655DD0

Accessibility & contrast

On white

11.68
#2F288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F288B
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288B#FFFFFF#000000##FFFFFF
##2F288B1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f288b;
/* rgb */ color: rgb(47, 40, 139);
/* oklch */ color: oklch(35.6% 0.157 278.0);
Tailwind
colors: {
  custom: {
    50: '#7463ae',
    500: '#2f288b',
    950: '#000000',
  },
}
SCSS
$custom: #2f288b;
$custom-light: #7463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288b",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 244.242,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35628,
    "c": 0.15705,
    "h": 278
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#2F288B
secondary
#AFB659
accent
#DF49D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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