#2F286F#2F286F

#2F286F is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.0% C 0.118 H 282.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2F286F
RGBrgb(47, 40, 111)
HSLhsl(246, 47%, 30%)
HSVhsv(246, 64%, 44%)
CMYKcmyk(57.7%, 64%, 0%, 56.5%)
CIE-LABlab(21.09, 24.93, -40.28)
CIE-LCHlch(21.09, 47.37, 301.75°)
OKLaboklab(33.01% 0.025 -0.1156)
OKLCHoklch(33.01% 0.118 282.2)
XYZxyz(4.7994, 3.2693, 15.4140)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F286F #686F28
analogous
#28456F #2F286F #52286F
triadic
#2F286F #6F2F28 #286F2F
tetradic
#2F286F #6F2845 #686F28 #286F52
square
#2F286F #6F2845 #686F28 #286F52
split-complementary
#2F286F #6F5228 #456F28
monochromatic
#0A0816 #1C1842 #2F286F #42389C #5C51C0

Accessibility & contrast

On white

12.70
#2F286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F286F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F286F#FFFFFF#000000##FFFFFF
##2F286F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#113947
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f286f;
/* rgb */ color: rgb(47, 40, 111);
/* oklch */ color: oklch(33.0% 0.118 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e6299',
    500: '#2f286f',
    950: '#000000',
  },
}
SCSS
$custom: #2f286f;
$custom-light: #6e6299;
$custom-dark: #000000;
JSON
{
  "hex": "#2f286f",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 245.915,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33009,
    "c": 0.11828,
    "h": 282.2
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#2F286F
secondary
#99A151
accent
#D751C9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F286F

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

Preview Lab → · Contrast checker → · Palette generator →

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