#2F3C81#2F3C81

#2F3C81 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.5% C 0.117 H 271.8°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2F3C81
RGBrgb(47, 60, 129)
HSLhsl(230, 47%, 35%)
HSVhsv(230, 64%, 51%)
CMYKcmyk(63.6%, 53.5%, 0%, 49.4%)
CIE-LABlab(27.90, 17.82, -40.69)
CIE-LCHlch(27.90, 44.42, 293.65°)
OKLaboklab(38.52% 0.0037 -0.1166)
OKLCHoklch(38.52% 0.117 271.8)
XYZxyz(6.7493, 5.4205, 21.4552)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C81 #81742F
analogous
#2F6581 #2F3C81 #4B2F81
triadic
#2F3C81 #812F3C #3C812F
tetradic
#2F3C81 #812F65 #81742F #2F814B
square
#2F3C81 #812F65 #81742F #2F814B
split-complementary
#2F3C81 #814B2F #65812F
monochromatic
#0E1227 #1F2754 #2F3C81 #3F51AE #6474C6

Accessibility & contrast

On white

10.08
#2F3C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F3C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C81
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C81#FFFFFF#000000##FFFFFF
##2F3C811.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144683
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3c81;
/* rgb */ color: rgb(47, 60, 129);
/* oklch */ color: oklch(38.5% 0.117 271.8);
Tailwind
colors: {
  custom: {
    50: '#7071a6',
    500: '#2f3c81',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c81;
$custom-light: #7071a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c81",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 230.488,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38521,
    "c": 0.11667,
    "h": 271.8
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#2F3C81
secondary
#ADA15E
accent
#C152D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3C81

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

Preview Lab → · Contrast checker → · Palette generator →

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