#2F287E#2F287E

#2F287E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.140 H 279.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2F287E
RGBrgb(47, 40, 126)
HSLhsl(245, 52%, 33%)
HSVhsv(245, 68%, 49%)
CMYKcmyk(62.7%, 68.3%, 0%, 50.6%)
CIE-LABlab(22.40, 30.14, -47.74)
CIE-LCHlch(22.40, 56.45, 302.27°)
OKLaboklab(34.37% 0.0237 -0.1375)
OKLCHoklch(34.37% 0.14 279.8)
XYZxyz(5.6958, 3.6279, 20.1347)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F287E #777E28
analogous
#284C7E #2F287E #5A287E
triadic
#2F287E #7E2F28 #287E2F
tetradic
#2F287E #7E284C #777E28 #287E5A
square
#2F287E #7E284C #777E28 #287E5A
split-complementary
#2F287E #7E5A28 #4C7E28
monochromatic
#0C0B21 #1E1950 #2F287E #4037AC #6057CA

Accessibility & contrast

On white

12.17
#2F287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F287E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F287E#FFFFFF#000000##FFFFFF
##2F287E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f287e;
/* rgb */ color: rgb(47, 40, 126);
/* oklch */ color: oklch(34.4% 0.140 279.8);
Tailwind
colors: {
  custom: {
    50: '#7162a4',
    500: '#2f287e',
    950: '#000000',
  },
}
SCSS
$custom: #2f287e;
$custom-light: #7162a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f287e",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 244.884,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.1395,
    "h": 279.8
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#2F287E
secondary
#A7AF53
accent
#DB4DD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F287E

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

Preview Lab → · Contrast checker → · Palette generator →

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