#2F327C#2F327C

#2F327C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.123 H 276.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2F327C
RGBrgb(47, 50, 124)
HSLhsl(238, 45%, 34%)
HSVhsv(238, 62%, 49%)
CMYKcmyk(62.1%, 59.7%, 0%, 51.4%)
CIE-LABlab(24.77, 22.81, -42.62)
CIE-LCHlch(24.77, 48.34, 298.16°)
OKLaboklab(36.05% 0.014 -0.1224)
OKLCHoklch(36.05% 0.123 276.5)
XYZxyz(5.9498, 4.3403, 19.5891)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F327C #7C792F
analogous
#2F587C #2F327C #522F7C
triadic
#2F327C #7C2F32 #327C2F
tetradic
#2F327C #7C2F58 #7C792F #2F7C52
square
#2F327C #7C2F58 #7C792F #2F7C52
split-complementary
#2F327C #7C522F #587C2F
monochromatic
#0D0E23 #1E2050 #2F327C #4044A8 #6266C3

Accessibility & contrast

On white

11.24
#2F327C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F327C
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F327C#FFFFFF#000000##FFFFFF
##2F327C1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f327c;
/* rgb */ color: rgb(47, 50, 124);
/* oklch */ color: oklch(36.1% 0.123 276.5);
Tailwind
colors: {
  custom: {
    50: '#706aa2',
    500: '#2f327c',
    950: '#000000',
  },
}
SCSS
$custom: #2f327c;
$custom-light: #706aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f327c",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 124
  },
  "hsl": {
    "h": 237.662,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.12319,
    "h": 276.5
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#2F327C
secondary
#AAA75C
accent
#D053D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2F327C

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

Preview Lab → · Contrast checker → · Palette generator →

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