#2F306A#2F306A

#2F306A is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.099 H 279.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F306A
RGBrgb(47, 48, 106)
HSLhsl(239, 39%, 30%)
HSVhsv(239, 56%, 42%)
CMYKcmyk(55.7%, 54.7%, 0%, 58.4%)
CIE-LABlab(22.86, 17.71, -34.20)
CIE-LCHlch(22.86, 38.51, 297.38°)
OKLaboklab(34.2% 0.0156 -0.0976)
OKLCHoklch(34.2% 0.099 279.1)
XYZxyz(4.8300, 3.7586, 14.1038)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F306A #6A692F
analogous
#2F4E6A #2F306A #4B2F6A
triadic
#2F306A #6A2F30 #306A2F
tetradic
#2F306A #6A2F4E #6A692F #2F6A4B
square
#2F306A #6A2F4E #6A692F #2F6A4B
split-complementary
#2F306A #6A4B2F #4E6A2F
monochromatic
#090A15 #1C1D40 #2F306A #424394 #5C5EB7

Accessibility & contrast

On white

11.99
#2F306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F306A
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F306A#FFFFFF#000000##FFFFFF
##2F306A1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12396C
Deuteranopia (green-blind)
#0A3469
Tritanopia (blue-blind)
#153D48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f306a;
/* rgb */ color: rgb(47, 48, 106);
/* oklch */ color: oklch(34.2% 0.099 279.1);
Tailwind
colors: {
  custom: {
    50: '#6d6895',
    500: '#2f306a',
    950: '#000000',
  },
}
SCSS
$custom: #2f306a;
$custom-light: #6d6895;
$custom-dark: #000000;
JSON
{
  "hex": "#2f306a",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 238.983,
    "s": 38.562,
    "l": 30
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.09887,
    "h": 279.1
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#2F306A
secondary
#9B9A59
accent
#CD59CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2F306A

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

Preview Lab → · Contrast checker → · Palette generator →

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