#2F2A6F#2F2A6F

#2F2A6F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.115 H 281.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2A6F
RGBrgb(47, 42, 111)
HSLhsl(244, 45%, 30%)
HSVhsv(244, 62%, 44%)
CMYKcmyk(57.7%, 62.2%, 0%, 56.5%)
CIE-LABlab(21.61, 23.59, -39.45)
CIE-LCHlch(21.61, 45.96, 300.88°)
OKLaboklab(33.39% 0.0228 -0.1131)
OKLCHoklch(33.39% 0.115 281.4)
XYZxyz(4.8686, 3.4077, 15.4370)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A6F #6A6F2A
analogous
#2A476F #2F2A6F #522A6F
triadic
#2F2A6F #6F2F2A #2A6F2F
tetradic
#2F2A6F #6F2A47 #6A6F2A #2A6F52
square
#2F2A6F #6F2A47 #6A6F2A #2A6F52
split-complementary
#2F2A6F #6F522A #476F2A
monochromatic
#090816 #1C1943 #2F2A6F #423B9B #5C55BF

Accessibility & contrast

On white

12.49
#2F2A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A6F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A6F#FFFFFF#000000##FFFFFF
##2F2A6F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#113A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2a6f;
/* rgb */ color: rgb(47, 42, 111);
/* oklch */ color: oklch(33.4% 0.115 281.4);
Tailwind
colors: {
  custom: {
    50: '#6e6399',
    500: '#2f2a6f',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a6f;
$custom-light: #6e6399;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a6f",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 244.348,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.33389,
    "c": 0.1154,
    "h": 281.4
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#2F2A6F
secondary
#9BA154
accent
#D553CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F2A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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