#2F3E9C#2F3E9C

#2F3E9C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.153 H 271.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2F3E9C
RGBrgb(47, 62, 156)
HSLhsl(232, 54%, 40%)
HSVhsv(232, 70%, 61%)
CMYKcmyk(69.9%, 60.3%, 0%, 38.8%)
CIE-LABlab(30.52, 26.49, -53.08)
CIE-LCHlch(30.52, 59.32, 296.52°)
OKLaboklab(41.14% 0.003 -0.153)
OKLCHoklch(41.14% 0.153 271.1)
XYZxyz(8.8936, 6.4490, 32.2221)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E9C #9C8D2F
analogous
#2F759C #2F3E9C #562F9C
triadic
#2F3E9C #9C2F3E #3E9C2F
tetradic
#2F3E9C #9C2F75 #9C8D2F #2F9C56
square
#2F3E9C #9C2F75 #9C8D2F #2F9C56
split-complementary
#2F3E9C #9C562F #759C2F
monochromatic
#13193E #212B6D #2F3E9C #4254C6 #717FD4

Accessibility & contrast

On white

9.17
#2F3E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2F3E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E9C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E9C#FFFFFF#000000##FFFFFF
##2F3E9C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3e9c;
/* rgb */ color: rgb(47, 62, 156);
/* oklch */ color: oklch(41.1% 0.153 271.1);
Tailwind
colors: {
  custom: {
    50: '#7673ba',
    500: '#2f3e9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e9c;
$custom-light: #7673ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e9c",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 156
  },
  "hsl": {
    "h": 231.743,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41135,
    "c": 0.15303,
    "h": 271.1
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#2F3E9C
secondary
#BCB16B
accent
#C94BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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