#2F287C#2F287C

#2F287C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.137 H 280.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2F287C
RGBrgb(47, 40, 124)
HSLhsl(245, 51%, 32%)
HSVhsv(245, 68%, 49%)
CMYKcmyk(62.1%, 67.7%, 0%, 51.4%)
CIE-LABlab(22.22, 29.45, -46.76)
CIE-LCHlch(22.22, 55.26, 302.20°)
OKLaboklab(34.18% 0.0239 -0.1346)
OKLCHoklch(34.18% 0.137 280.1)
XYZxyz(5.5680, 3.5768, 19.4618)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F287C #757C28
analogous
#284B7C #2F287C #59287C
triadic
#2F287C #7C2F28 #287C2F
tetradic
#2F287C #7C284B #757C28 #287C59
square
#2F287C #7C284B #757C28 #287C59
split-complementary
#2F287C #7C5928 #4B7C28
monochromatic
#0C0A1F #1D194E #2F287C #4137AA #5F56C8

Accessibility & contrast

On white

12.24
#2F287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F287C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F287C#FFFFFF#000000##FFFFFF
##2F287C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f287c;
/* rgb */ color: rgb(47, 40, 124);
/* oklch */ color: oklch(34.2% 0.137 280.1);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2f287c',
    950: '#000000',
  },
}
SCSS
$custom: #2f287c;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f287c",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 245,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34184,
    "c": 0.13673,
    "h": 280.1
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#2F287C
secondary
#A6AD52
accent
#DB4DCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F287C

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

Preview Lab → · Contrast checker → · Palette generator →

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