#2F30AB#2F30AB

#2F30AB is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.189 H 273.5°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2F30AB
RGBrgb(47, 48, 171)
HSLhsl(240, 57%, 43%)
HSVhsv(240, 73%, 67%)
CMYKcmyk(72.5%, 71.9%, 0%, 32.9%)
CIE-LABlab(28.53, 40.72, -65.39)
CIE-LCHlch(28.53, 77.03, 301.91°)
OKLaboklab(40.1% 0.0114 -0.1891)
OKLCHoklch(40.1% 0.189 273.5)
XYZxyz(9.5775, 5.6576, 39.1075)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F30AB #ABAA2F
analogous
#2F6EAB #2F30AB #6C2FAB
triadic
#2F30AB #AB2F30 #30AB2F
tetradic
#2F30AB #AB2F6E #ABAA2F #2FAB6C
square
#2F30AB #AB2F6E #ABAA2F #2FAB6C
split-complementary
#2F30AB #AB6C2F #6EAB2F
monochromatic
#15154B #22237B #2F30AB #4A4BCD #7A7BDA

Accessibility & contrast

On white

9.85
#2F30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F30AB
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F30AB#FFFFFF#000000##FFFFFF
##2F30AB1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f30ab;
/* rgb */ color: rgb(47, 48, 171);
/* oklch */ color: oklch(40.1% 0.189 273.5);
Tailwind
colors: {
  custom: {
    50: '#7b69c5',
    500: '#2f30ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f30ab;
$custom-light: #7b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f30ab",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 239.516,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40102,
    "c": 0.18946,
    "h": 273.5
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#2F30AB
secondary
#C3C273
accent
#DF48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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