#2F2383#2F2383

#2F2383 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.152 H 280.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2F2383
RGBrgb(47, 35, 131)
HSLhsl(248, 58%, 33%)
HSVhsv(248, 73%, 51%)
CMYKcmyk(64.1%, 73.3%, 0%, 48.6%)
CIE-LABlab(21.74, 34.94, -51.97)
CIE-LCHlch(21.74, 62.62, 303.91°)
OKLaboklab(34.04% 0.0271 -0.1499)
OKLCHoklch(34.04% 0.152 280.2)
XYZxyz(5.8688, 3.4447, 21.8239)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2383 #778323
analogous
#234783 #2F2383 #5F2383
triadic
#2F2383 #832F23 #23832F
tetradic
#2F2383 #832347 #778323 #23835F
square
#2F2383 #832347 #778323 #23835F
split-complementary
#2F2383 #835F23 #478323
monochromatic
#0C0922 #1E1653 #2F2383 #4030B3 #6050D0

Accessibility & contrast

On white

12.43
#2F2383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F2383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2383
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2383#FFFFFF#000000##FFFFFF
##2F23831.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2383;
/* rgb */ color: rgb(47, 35, 131);
/* oklch */ color: oklch(34.0% 0.152 280.2);
Tailwind
colors: {
  custom: {
    50: '#735fa8',
    500: '#2f2383',
    950: '#000000',
  },
}
SCSS
$custom: #2f2383;
$custom-light: #735fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2383",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 247.5,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34045,
    "c": 0.15231,
    "h": 280.2
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#2F2383
secondary
#A7B44E
accent
#E147CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2383

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

Preview Lab → · Contrast checker → · Palette generator →

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