#2F3378#2F3378

#2F3378 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.9% C 0.116 H 276.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F3378
RGBrgb(47, 51, 120)
HSLhsl(237, 44%, 33%)
HSVhsv(237, 61%, 47%)
CMYKcmyk(60.8%, 57.5%, 0%, 52.9%)
CIE-LABlab(24.73, 20.68, -40.15)
CIE-LCHlch(24.73, 45.17, 297.25°)
OKLaboklab(35.93% 0.0129 -0.1151)
OKLCHoklch(35.93% 0.116 276.4)
XYZxyz(5.7452, 4.3276, 18.2982)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3378 #78742F
analogous
#2F5878 #2F3378 #4F2F78
triadic
#2F3378 #782F33 #33782F
tetradic
#2F3378 #782F58 #78742F #2F784F
square
#2F3378 #782F58 #78742F #2F784F
split-complementary
#2F3378 #784F2F #58782F
monochromatic
#0D0E20 #1E204C #2F3378 #4046A4 #6066C1

Accessibility & contrast

On white

11.26
#2F3378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F3378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3378
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3378#FFFFFF#000000##FFFFFF
##2F33781.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023E7A
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3378;
/* rgb */ color: rgb(47, 51, 120);
/* oklch */ color: oklch(35.9% 0.116 276.4);
Tailwind
colors: {
  custom: {
    50: '#6f6a9f',
    500: '#2f3378',
    950: '#000000',
  },
}
SCSS
$custom: #2f3378;
$custom-light: #6f6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3378",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 120
  },
  "hsl": {
    "h": 236.712,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35926,
    "c": 0.11584,
    "h": 276.4
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#2F3378
secondary
#A8A45B
accent
#CC54D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F3378

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

Preview Lab → · Contrast checker → · Palette generator →

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