#2F306C#2F306C

#2F306C is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.102 H 278.9°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2F306C
RGBrgb(47, 48, 108)
HSLhsl(239, 39%, 30%)
HSVhsv(239, 56%, 42%)
CMYKcmyk(56.5%, 55.6%, 0%, 57.6%)
CIE-LABlab(23.00, 18.43, -35.26)
CIE-LCHlch(23.00, 39.78, 297.59°)
OKLaboklab(34.35% 0.0157 -0.1008)
OKLCHoklch(34.35% 0.102 278.9)
XYZxyz(4.9352, 3.8006, 14.6580)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F306C #6C6B2F
analogous
#2F4E6C #2F306C #4C2F6C
triadic
#2F306C #6C2F30 #306C2F
tetradic
#2F306C #6C2F4E #6C6B2F #2F6C4C
square
#2F306C #6C2F4E #6C6B2F #2F6C4C
split-complementary
#2F306C #6C4C2F #4E6C2F
monochromatic
#0A0A17 #1C1D41 #2F306C #424397 #5D5EB8

Accessibility & contrast

On white

11.93
#2F306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F306C
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F306C#FFFFFF#000000##FFFFFF
##2F306C1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F396E
Deuteranopia (green-blind)
#06346B
Tritanopia (blue-blind)
#133E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f306c;
/* rgb */ color: rgb(47, 48, 108);
/* oklch */ color: oklch(34.4% 0.102 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d6896',
    500: '#2f306c',
    950: '#000000',
  },
}
SCSS
$custom: #2f306c;
$custom-light: #6d6896;
$custom-dark: #000000;
JSON
{
  "hex": "#2f306c",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 239.016,
    "s": 39.355,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.10198,
    "h": 278.9
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#2F306C
secondary
#9D9C59
accent
#CD59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F306C

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

Preview Lab → · Contrast checker → · Palette generator →

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