#2F3281#2F3281

#2F3281 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.130 H 276.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2F3281
RGBrgb(47, 50, 129)
HSLhsl(238, 47%, 35%)
HSVhsv(238, 64%, 51%)
CMYKcmyk(63.6%, 61.2%, 0%, 49.4%)
CIE-LABlab(25.17, 24.62, -45.12)
CIE-LCHlch(25.17, 51.40, 298.63°)
OKLaboklab(36.48% 0.014 -0.1297)
OKLCHoklch(36.48% 0.13 276.2)
XYZxyz(6.2741, 4.4700, 21.2968)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3281 #817E2F
analogous
#2F5B81 #2F3281 #552F81
triadic
#2F3281 #812F32 #32812F
tetradic
#2F3281 #812F5B #817E2F #2F8155
square
#2F3281 #812F5B #817E2F #2F8155
split-complementary
#2F3281 #81552F #5B812F
monochromatic
#0E0F27 #1F2154 #2F3281 #3F43AE #6468C6

Accessibility & contrast

On white

11.09
#2F3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3281
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3281#FFFFFF#000000##FFFFFF
##2F32811.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f3281;
/* rgb */ color: rgb(47, 50, 129);
/* oklch */ color: oklch(36.5% 0.130 276.2);
Tailwind
colors: {
  custom: {
    50: '#716aa6',
    500: '#2f3281',
    950: '#000000',
  },
}
SCSS
$custom: #2f3281;
$custom-light: #716aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3281",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 237.805,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36479,
    "c": 0.13048,
    "h": 276.2
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#2F3281
secondary
#ADAB5E
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F3281

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

Preview Lab → · Contrast checker → · Palette generator →

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