#242895#242895

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

Color values

HEX#242895
RGBrgb(36, 40, 149)
HSLhsl(238, 61%, 36%)
HSVhsv(238, 76%, 58%)
CMYKcmyk(75.8%, 73.2%, 0%, 41.6%)
CIE-LABlab(23.88, 36.80, -59.70)
CIE-LCHlch(23.88, 70.13, 301.65°)
OKLaboklab(35.92% 0.0062 -0.1728)
OKLCHoklch(35.92% 0.173 272.1)
XYZxyz(6.9093, 4.0619, 28.8478)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242895 #959124
analogous
#246195 #242895 #592495
triadic
#242895 #952428 #289524
tetradic
#242895 #952461 #959124 #249559
square
#242895 #952461 #959124 #249559
split-complementary
#242895 #955924 #619524
monochromatic
#0C0E32 #181B64 #242895 #3035C6 #5C60D8

Accessibility & contrast

On white

11.59
#242895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242895
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242895#FFFFFF#000000##FFFFFF
##2428951.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242895;
/* rgb */ color: rgb(36, 40, 149);
/* oklch */ color: oklch(35.9% 0.173 272.1);
Tailwind
colors: {
  custom: {
    50: '#7263b5',
    500: '#242895',
    950: '#000000',
  },
}
SCSS
$custom: #242895;
$custom-light: #7263b5;
$custom-dark: #000000;
JSON
{
  "hex": "#242895",
  "rgb": {
    "r": 36,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 237.876,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35915,
    "c": 0.17289,
    "h": 272.1
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#242895
secondary
#BCB959
accent
#DF44E4
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #242895

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

Preview Lab → · Contrast checker → · Palette generator →

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