#2F288C#2F288C

#2F288C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.158 H 277.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2F288C
RGBrgb(47, 40, 140)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 71%, 55%)
CMYKcmyk(66.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.72, 34.96, -54.36)
CIE-LCHlch(23.72, 64.63, 302.75°)
OKLaboklab(35.73% 0.0216 -0.1569)
OKLCHoklch(35.73% 0.158 277.8)
XYZxyz(6.6632, 4.0148, 25.2297)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F288C #858C28
analogous
#28538C #2F288C #61288C
triadic
#2F288C #8C2F28 #288C2F
tetradic
#2F288C #8C2853 #858C28 #288C61
square
#2F288C #8C2853 #858C28 #288C61
split-complementary
#2F288C #8C6128 #538C28
monochromatic
#0F0D2D #1F1A5C #2F288C #3F36BC #665ED1

Accessibility & contrast

On white

11.65
#2F288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F288C
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F288C#FFFFFF#000000##FFFFFF
##2F288C1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f288c;
/* rgb */ color: rgb(47, 40, 140);
/* oklch */ color: oklch(35.7% 0.158 277.8);
Tailwind
colors: {
  custom: {
    50: '#7463af',
    500: '#2f288c',
    950: '#000000',
  },
}
SCSS
$custom: #2f288c;
$custom-light: #7463af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f288c",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 244.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35728,
    "c": 0.15836,
    "h": 277.8
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#2F288C
secondary
#B0B65A
accent
#DF49D4
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F288C

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

Preview Lab → · Contrast checker → · Palette generator →

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