#234798#234798

#234798 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.139 H 263.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#234798
RGBrgb(35, 71, 152)
HSLhsl(222, 63%, 37%)
HSVhsv(222, 77%, 60%)
CMYKcmyk(77%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.10, 17.24, -48.10)
CIE-LCHlch(32.10, 51.10, 289.72°)
OKLaboklab(42.07% -0.0157 -0.1385)
OKLCHoklch(42.07% 0.139 263.5)
XYZxyz(8.6119, 7.1298, 30.6220)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#234798 #987423
analogous
#238298 #234798 #392398
triadic
#234798 #982347 #479823
tetradic
#234798 #982382 #987423 #239839
square
#234798 #982382 #987423 #239839
split-complementary
#234798 #983923 #829823
monochromatic
#0C1935 #183066 #234798 #2E5ECA #5C83D9

Accessibility & contrast

On white

8.66
#234798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#234798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #234798
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##234798#FFFFFF#000000##FFFFFF
##2347981.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #234798;
/* rgb */ color: rgb(35, 71, 152);
/* oklch */ color: oklch(42.1% 0.139 263.5);
Tailwind
colors: {
  custom: {
    50: '#7079b7',
    500: '#234798',
    950: '#000000',
  },
}
SCSS
$custom: #234798;
$custom-light: #7079b7;
$custom-dark: #000000;
JSON
{
  "hex": "#234798",
  "rgb": {
    "r": 35,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 221.538,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.13938,
    "h": 263.5
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#234798
secondary
#BE9F59
accent
#B342E6
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #234798

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

Preview Lab → · Contrast checker → · Palette generator →

#234798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva