#2F30B2#2F30B2

#2F30B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.198 H 273.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2F30B2
RGBrgb(47, 48, 178)
HSLhsl(240, 58%, 44%)
HSVhsv(240, 74%, 70%)
CMYKcmyk(73.6%, 73%, 0%, 30.2%)
CIE-LABlab(29.24, 43.09, -68.41)
CIE-LCHlch(29.24, 80.85, 302.21°)
OKLaboklab(40.82% 0.0103 -0.1979)
OKLCHoklch(40.82% 0.198 273)
XYZxyz(10.2624, 5.9315, 42.7149)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30B2 #B2B12F
analogous
#2F72B2 #2F30B2 #702FB2
triadic
#2F30B2 #B22F30 #30B22F
tetradic
#2F30B2 #B22F72 #B2B12F #2FB270
square
#2F30B2 #B22F72 #B2B12F #2FB270
split-complementary
#2F30B2 #B2702F #72B22F
monochromatic
#151651 #222382 #2F30B2 #4E4FD0 #7E7FDD

Accessibility & contrast

On white

9.60
#2F30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30B2
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30B2#FFFFFF#000000##FFFFFF
##2F30B21.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f30b2;
/* rgb */ color: rgb(47, 48, 178);
/* oklch */ color: oklch(40.8% 0.198 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c6aca',
    500: '#2f30b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f30b2;
$custom-light: #7c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30b2",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 239.542,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4082,
    "c": 0.1982,
    "h": 273
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#2F30B2
secondary
#C6C577
accent
#E046E1
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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