#2F3F8E#2F3F8E

#2F3F8E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.132 H 270.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2F3F8E
RGBrgb(47, 63, 142)
HSLhsl(230, 50%, 37%)
HSVhsv(230, 67%, 56%)
CMYKcmyk(66.9%, 55.6%, 0%, 44.3%)
CIE-LABlab(29.69, 20.62, -45.86)
CIE-LCHlch(29.69, 50.28, 294.21°)
OKLaboklab(40.17% 0.0016 -0.1318)
OKLCHoklch(40.17% 0.132 270.7)
XYZxyz(7.8306, 6.1116, 26.3529)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F8E #8E7E2F
analogous
#2F6F8E #2F3F8E #4F2F8E
triadic
#2F3F8E #8E2F3F #3F8E2F
tetradic
#2F3F8E #8E2F6F #8E7E2F #2F8E4F
square
#2F3F8E #8E2F6F #8E7E2F #2F8E4F
split-complementary
#2F3F8E #8E4F2F #6F8E2F
monochromatic
#111632 #202B60 #2F3F8E #3E53BC #6A7BCE

Accessibility & contrast

On white

9.45
#2F3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F3F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F8E
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F8E#FFFFFF#000000##FFFFFF
##2F3F8E1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3f8e;
/* rgb */ color: rgb(47, 63, 142);
/* oklch */ color: oklch(40.2% 0.132 270.7);
Tailwind
colors: {
  custom: {
    50: '#7373b0',
    500: '#2f3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f8e;
$custom-light: #7373b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f8e",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 229.895,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40174,
    "c": 0.13178,
    "h": 270.7
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#2F3F8E
secondary
#B5A764
accent
#C24EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2F3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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