#2F286C#2F286C

#2F286C is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.8% C 0.114 H 282.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2F286C
RGBrgb(47, 40, 108)
HSLhsl(246, 46%, 29%)
HSVhsv(246, 63%, 42%)
CMYKcmyk(56.5%, 63%, 0%, 57.6%)
CIE-LABlab(20.84, 23.89, -38.75)
CIE-LCHlch(20.84, 45.52, 301.65°)
OKLaboklab(32.75% 0.0252 -0.1111)
OKLCHoklch(32.75% 0.114 282.8)
XYZxyz(4.6370, 3.2044, 14.5586)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F286C #656C28
analogous
#28436C #2F286C #51286C
triadic
#2F286C #6C2F28 #286C2F
tetradic
#2F286C #6C2843 #656C28 #286C51
square
#2F286C #6C2843 #656C28 #286C51
split-complementary
#2F286C #6C5128 #436C28
monochromatic
#0A0816 #1C173F #2F286C #423999 #5B50BE

Accessibility & contrast

On white

12.80
#2F286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F286C
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F286C#FFFFFF#000000##FFFFFF
##2F286C1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#153846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f286c;
/* rgb */ color: rgb(47, 40, 108);
/* oklch */ color: oklch(32.8% 0.114 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e6297',
    500: '#2f286c',
    950: '#000000',
  },
}
SCSS
$custom: #2f286c;
$custom-light: #6e6297;
$custom-dark: #000000;
JSON
{
  "hex": "#2f286c",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 246.176,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.11389,
    "h": 282.8
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#2F286C
secondary
#979E51
accent
#D652C8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #2F286C

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

Preview Lab → · Contrast checker → · Palette generator →

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