#2F3C8E#2F3C8E

#2F3C8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.136 H 271.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2F3C8E
RGBrgb(47, 60, 142)
HSLhsl(232, 50%, 37%)
HSVhsv(232, 67%, 56%)
CMYKcmyk(66.9%, 57.7%, 0%, 44.3%)
CIE-LABlab(28.87, 22.64, -47.19)
CIE-LCHlch(28.87, 52.34, 295.63°)
OKLaboklab(39.56% 0.0045 -0.1357)
OKLCHoklch(39.56% 0.136 271.9)
XYZxyz(7.6690, 5.7884, 26.2991)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3C8E #8E812F
analogous
#2F6C8E #2F3C8E #512F8E
triadic
#2F3C8E #8E2F3C #3C8E2F
tetradic
#2F3C8E #8E2F6C #8E812F #2F8E51
square
#2F3C8E #8E2F6C #8E812F #2F8E51
split-complementary
#2F3C8E #8E512F #6C8E2F
monochromatic
#111532 #202960 #2F3C8E #3E4FBC #6A77CE

Accessibility & contrast

On white

9.73
#2F3C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F3C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3C8E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3C8E#FFFFFF#000000##FFFFFF
##2F3C8E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f3c8e;
/* rgb */ color: rgb(47, 60, 142);
/* oklch */ color: oklch(39.6% 0.136 271.9);
Tailwind
colors: {
  custom: {
    50: '#7371b0',
    500: '#2f3c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3c8e;
$custom-light: #7371b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3c8e",
  "rgb": {
    "r": 47,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 231.789,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39559,
    "c": 0.13579,
    "h": 271.9
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#2F3C8E
secondary
#B5AA64
accent
#C74EDA
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2F3C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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