#334ABC#334ABC

#334ABC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.4% C 0.181 H 269.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#334ABC
RGBrgb(51, 74, 188)
HSLhsl(230, 57%, 47%)
HSVhsv(230, 73%, 74%)
CMYKcmyk(72.9%, 60.6%, 0%, 26.3%)
CIE-LABlab(36.43, 30.90, -62.53)
CIE-LCHlch(36.43, 69.75, 296.30°)
OKLaboklab(46.39% -0.0023 -0.1805)
OKLCHoklch(46.39% 0.181 269.3)
XYZxyz(12.8880, 9.2309, 48.6697)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334ABC #BCA533
analogous
#338FBC #334ABC #6133BC
triadic
#334ABC #BC334A #4ABC33
tetradic
#334ABC #BC338F #BCA533 #33BC61
square
#334ABC #BC338F #BCA533 #33BC61
split-complementary
#334ABC #BC6133 #8FBC33
monochromatic
#19245C #26378C #334ABC #5A6ED2 #8A98DF

Accessibility & contrast

On white

7.38
#334ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#334ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334ABC
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334ABC#FFFFFF#000000##FFFFFF
##334ABC1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#00677C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334abc;
/* rgb */ color: rgb(51, 74, 188);
/* oklch */ color: oklch(46.4% 0.181 269.3);
Tailwind
colors: {
  custom: {
    50: '#7e7cd1',
    500: '#334abc',
    950: '#000000',
  },
}
SCSS
$custom: #334abc;
$custom-light: #7e7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#334abc",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 229.927,
    "s": 57.322,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46391,
    "c": 0.18055,
    "h": 269.3
  },
  "luminance": 0.09232
}

Semantic roles & 50–950 ramp

primary
#334ABC
secondary
#C9BD81
accent
#C747E1
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334ABC

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

Preview Lab → · Contrast checker → · Palette generator →

#334ABC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva