#2F3D9C#2F3D9C

#2F3D9C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.154 H 271.4°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2F3D9C
RGBrgb(47, 61, 156)
HSLhsl(232, 54%, 40%)
HSVhsv(232, 70%, 61%)
CMYKcmyk(69.9%, 60.9%, 0%, 38.8%)
CIE-LABlab(30.26, 27.15, -53.50)
CIE-LCHlch(30.26, 59.99, 296.91°)
OKLaboklab(40.94% 0.0038 -0.1543)
OKLCHoklch(40.94% 0.154 271.4)
XYZxyz(8.8398, 6.3413, 32.2042)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D9C #9C8E2F
analogous
#2F739C #2F3D9C #582F9C
triadic
#2F3D9C #9C2F3D #3D9C2F
tetradic
#2F3D9C #9C2F73 #9C8E2F #2F9C58
square
#2F3D9C #9C2F73 #9C8E2F #2F9C58
split-complementary
#2F3D9C #9C582F #739C2F
monochromatic
#13183E #212B6D #2F3D9C #4253C6 #717ED4

Accessibility & contrast

On white

9.26
#2F3D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D9C
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D9C#FFFFFF#000000##FFFFFF
##2F3D9C1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3d9c;
/* rgb */ color: rgb(47, 61, 156);
/* oklch */ color: oklch(40.9% 0.154 271.4);
Tailwind
colors: {
  custom: {
    50: '#7672ba',
    500: '#2f3d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d9c;
$custom-light: #7672ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d9c",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 232.294,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40942,
    "c": 0.15431,
    "h": 271.4
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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