#242698#242698

#242698 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.179 H 272.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#242698
RGBrgb(36, 38, 152)
HSLhsl(239, 62%, 37%)
HSVhsv(239, 76%, 60%)
CMYKcmyk(76.3%, 75%, 0%, 40.4%)
CIE-LABlab(23.76, 39.05, -61.74)
CIE-LCHlch(23.76, 73.05, 302.32°)
OKLaboklab(35.93% 0.0067 -0.1787)
OKLCHoklch(35.93% 0.179 272.1)
XYZxyz(7.0863, 4.0275, 30.1036)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242698 #989624
analogous
#246098 #242698 #5C2498
triadic
#242698 #982426 #269824
tetradic
#242698 #982460 #989624 #24985C
square
#242698 #982460 #989624 #24985C
split-complementary
#242698 #985C24 #609824
monochromatic
#0D0D35 #181A67 #242698 #3032C9 #5E60D9

Accessibility & contrast

On white

11.63
#242698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#242698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242698
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242698#FFFFFF#000000##FFFFFF
##2426981.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242698;
/* rgb */ color: rgb(36, 38, 152);
/* oklch */ color: oklch(35.9% 0.179 272.1);
Tailwind
colors: {
  custom: {
    50: '#7362b8',
    500: '#242698',
    950: '#000000',
  },
}
SCSS
$custom: #242698;
$custom-light: #7362b8;
$custom-dark: #000000;
JSON
{
  "hex": "#242698",
  "rgb": {
    "r": 36,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 238.966,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.17882,
    "h": 272.1
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#242698
secondary
#BEBC5A
accent
#E243E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242698

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

Preview Lab → · Contrast checker → · Palette generator →

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